Added the Ability to restart the entire client
Signed-off-by: AvaLilac <257690424+AvaLilac@users.noreply.github.com>
This commit is contained in:
parent
f95cc126ce
commit
0e903e71df
1 changed files with 9 additions and 1 deletions
|
|
@ -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 trayIconAsset from "../../avia_assets/icon.png?asset";
|
||||||
import macOsTrayIconAsset from "../../avia_assets/iconTemplate.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",
|
label: "Quit App",
|
||||||
type: "normal",
|
type: "normal",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue