Added the Ability to restart the entire client

Signed-off-by: AvaLilac <257690424+AvaLilac@users.noreply.github.com>
This commit is contained in:
AvaLilac 2026-03-28 21:06:46 -04:00 committed by GitHub
parent f95cc126ce
commit 0e903e71df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,4 +1,4 @@
import { Menu, Tray, nativeImage } from "electron";
import { Menu, Tray, nativeImage, app } from "electron";
import trayIconAsset from "../../avia_assets/icon.png?asset";
import macOsTrayIconAsset from "../../avia_assets/iconTemplate.png?asset";
@ -64,6 +64,14 @@ export function updateTrayMenu() {
}
},
},
{
label: "Restart App",
type: "normal",
click() {
app.relaunch();
app.quit(0);
},
},
{
label: "Quit App",
type: "normal",