Always on top not working because I'm dumb
This commit is contained in:
parent
9809c564b4
commit
9dd0b1a585
|
@ -49,6 +49,7 @@ electron.ipcMain.on("LIGHTCORD_SET_ALWAYS_ON_TOP", (event, enabled) => {
|
||||||
const window = electron.BrowserWindow.fromId(getMainWindowId())
|
const window = electron.BrowserWindow.fromId(getMainWindowId())
|
||||||
if(!window)return
|
if(!window)return
|
||||||
window.setAlwaysOnTop(enabled)
|
window.setAlwaysOnTop(enabled)
|
||||||
|
event.returnValue = null
|
||||||
})
|
})
|
||||||
electron.ipcMain.on("LIGHTCORD_GET_BROWSERWINDOW_ID", (event) => {
|
electron.ipcMain.on("LIGHTCORD_GET_BROWSERWINDOW_ID", (event) => {
|
||||||
event.returnValue = getMainWindowId()
|
event.returnValue = getMainWindowId()
|
||||||
|
|
Loading…
Reference in New Issue