keep always on top

This commit is contained in:
pompurin404 2024-10-06 18:29:49 +08:00
parent 708944d078
commit 0e129ab00f
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
### Bug Fixes
- 修复开启轻量模式后 TrafficMonitor 重复启动的问题
- 修复 TrafficMonitor 重复开关后位置偏移的问题
- 修复 悬浮窗置顶失效的问题

View File

@ -37,6 +37,7 @@ async function createFloatingWindow(): Promise<void> {
floatingWindow.on('ready-to-show', () => {
applyTheme(customTheme)
floatingWindow?.show()
floatingWindow?.setAlwaysOnTop(true, 'screen-saver')
})
floatingWindow.on('moved', () => {
if (floatingWindow) floatingWindowState.saveState(floatingWindow)