feat(tamagotchi): add reset main window position to system tray (#1088)
* feat(tamagotchi): add reset main window position to system tray * chore: adjust wording --------- Co-authored-by: Makito <sumimakito@hotmail.com>
This commit is contained in:
@@ -36,6 +36,15 @@ export function setupTray(params: {
|
||||
const contextMenu = Menu.buildFromTemplate([
|
||||
{ label: 'Show', click: () => toggleWindowShow(params.mainWindow) },
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: 'Center and Reset Size',
|
||||
click: () => {
|
||||
params.mainWindow.setSize(450, 600)
|
||||
params.mainWindow.center()
|
||||
params.mainWindow.show()
|
||||
},
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{ label: 'Settings...', click: () => params.settingsWindow().then(window => toggleWindowShow(window)) },
|
||||
{ label: 'About...', click: () => params.aboutWindow().then(window => toggleWindowShow(window)) },
|
||||
{ type: 'separator' },
|
||||
|
||||
Reference in New Issue
Block a user