Skip to content

Commit

Permalink
keep always on top
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Oct 6, 2024
1 parent 2c98d61 commit 7c42d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Bug Fixes

- 修复开启轻量模式后 TrafficMonitor 重复启动的问题
- 修复 TrafficMonitor 重复开关后位置偏移的问题
- 修复 悬浮窗置顶失效的问题
1 change: 1 addition & 0 deletions src/main/resolve/floatingWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7c42d4b

Please sign in to comment.