Skip to content

Commit 821f010

Browse files
committed
disable drag
1 parent 81e3d71 commit 821f010

File tree

6 files changed

+231
-228
lines changed

6 files changed

+231
-228
lines changed

main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ ipcMain.handle("show-gif-dialog", async (event) => {
176176
if (currentDialog.type === "gif") return
177177
}
178178
const bounds = window?.getBounds()!
179-
currentDialog = new BrowserWindow({width: 190, height: 175, x: bounds.x + bounds.width - 190 - 170, y: bounds.y + 60, resizable: false, show: false, transparent: true, frame: false, backgroundColor: "#3177f5", webPreferences: {nodeIntegration: true, contextIsolation: false, webSecurity: false}})
179+
currentDialog = new BrowserWindow({width: 190, height: 175, x: bounds.x + bounds.width - 190 - 170, y: bounds.y + 60, resizable: false, show: false, transparent: true, frame: false, backgroundColor: "#3177f5", roundedCorners: false, webPreferences: {nodeIntegration: true, contextIsolation: false, webSecurity: false}})
180180
currentDialog.loadFile(path.join(__dirname, "gifdialog.html"))
181181
currentDialog.removeMenu()
182182
currentDialog.setAlwaysOnTop(true)
@@ -1246,7 +1246,7 @@ if (!singleLock) {
12461246
})
12471247

12481248
app.on("ready", () => {
1249-
window = new BrowserWindow({width: 900, height: 650, minWidth: 520, minHeight: 250, show: false, frame: false, backgroundColor: "#3177f5", center: true, webPreferences: {nodeIntegration: true, contextIsolation: false, enableRemoteModule: true, webSecurity: false}})
1249+
window = new BrowserWindow({width: 900, height: 650, minWidth: 520, minHeight: 250, show: false, frame: false, backgroundColor: "#3177f5", center: true, roundedCorners: false, webPreferences: {nodeIntegration: true, contextIsolation: false, enableRemoteModule: true, webSecurity: false}})
12501250
window.loadFile(path.join(__dirname, "index.html"))
12511251
window.removeMenu()
12521252
openFile()

0 commit comments

Comments
 (0)