This commit is contained in:
Liang Ding 2022-12-12 23:21:49 +08:00
parent 3f4e642bc3
commit e353561052
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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)