We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8685cd commit bc6b7b5Copy full SHA for bc6b7b5
src/main/main-window.ts
@@ -1,5 +1,5 @@
1
import { join } from 'node:path'
2
-import { shell, BrowserWindow } from 'electron'
+import { shell, app, BrowserWindow } from 'electron'
3
import { is } from '@electron-toolkit/utils'
4
import icon from '../../resources/icon.png?asset'
5
@@ -30,6 +30,9 @@ export function createWindow(): void {
30
31
mainWindow.on('ready-to-show', () => {
32
mainWindow.show()
33
+ mainWindow.setAlwaysOnTop(true, 'screen-saver', 1)
34
+ mainWindow.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })
35
+ app.dock?.show()
36
mainWindow.setContentProtection(true)
37
})
38
0 commit comments