🎨 Windows 端支持窗口置顶 Fix https://github.com/siyuan-note/siyuan/issues/6860
This commit is contained in:
parent
3f4e642bc3
commit
e353561052
1 changed files with 2 additions and 2 deletions
|
@ -483,13 +483,13 @@ const boot = () => {
|
|||
click: () => {
|
||||
if (!mainWindow.isAlwaysOnTop()) {
|
||||
mainWindow.setAlwaysOnTop(true)
|
||||
changeWndTop.label = 'Cancel Window Top'
|
||||
changeWndTop.label = 'Cancel window top'
|
||||
trayMenuTemplate.splice(trayMenuTemplate.length - 2, 1, changeWndTop)
|
||||
const contextMenu = Menu.buildFromTemplate(trayMenuTemplate)
|
||||
tray.setContextMenu(contextMenu)
|
||||
} else {
|
||||
mainWindow.setAlwaysOnTop(false)
|
||||
changeWndTop.label = 'Set Window Top'
|
||||
changeWndTop.label = 'Set window top'
|
||||
trayMenuTemplate.splice(trayMenuTemplate.length - 2, 1, changeWndTop)
|
||||
const contextMenu = Menu.buildFromTemplate(trayMenuTemplate)
|
||||
tray.setContextMenu(contextMenu)
|
||||
|
|
Loading…
Add table
Reference in a new issue