mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fix server console not shutting down with new icons
This commit is contained in:
parent
eabe3188b3
commit
c4c1fdc6db
1 changed files with 2 additions and 2 deletions
|
@ -134,7 +134,7 @@ function shutdownCallback(idx) {
|
|||
homeServer.stop();
|
||||
}
|
||||
|
||||
updateTrayMenu(null);
|
||||
updateTrayMenu(homeServer.state);
|
||||
|
||||
if (homeServer.state == ProcessGroupStates.STOPPED) {
|
||||
// if the home server is already down, take down the server console now
|
||||
|
@ -594,7 +594,7 @@ function updateMenuArray(menuArray, serverState) {
|
|||
|
||||
function updateTrayMenu(serverState) {
|
||||
if (tray) {
|
||||
var menuArray = buildMenuArray(serverState);
|
||||
var menuArray = buildMenuArray(isShuttingDown ? null : serverState);
|
||||
tray.setImage(trayIcons[serverState]);
|
||||
tray.setContextMenu(Menu.buildFromTemplate(menuArray));
|
||||
if (isShuttingDown) {
|
||||
|
|
Loading…
Reference in a new issue