From 42cbd18bcd85750c658a19f51b3e895b30cbafcd Mon Sep 17 00:00:00 2001 From: kiminus <47069260+kiminus@users.noreply.github.com> Date: Tue, 3 Mar 2026 06:23:26 -0800 Subject: [PATCH] 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 --- apps/stage-tamagotchi/src/main/tray/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/apps/stage-tamagotchi/src/main/tray/index.ts b/apps/stage-tamagotchi/src/main/tray/index.ts index 6653316b6..0a1c06d2a 100644 --- a/apps/stage-tamagotchi/src/main/tray/index.ts +++ b/apps/stage-tamagotchi/src/main/tray/index.ts @@ -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' },