Remove tray menu on restartApplication() (close #10)

master
Skylar Ittner 5 jaren geleden
bovenliggende d31303ff19
commit 673b8fba4f

@ -41,6 +41,7 @@ function shadeColor2(color, percent) {
}
function restartApplication() {
removeTrayMenu();
window.location = "index.html";
}

@ -16,6 +16,10 @@ var setTrayMenu = function (items) {
}
var removeTrayMenu = function () {
}
function initCordova() {
platform_type = "cordova";
@ -78,6 +82,11 @@ function initNW() {
icon: 'www/img/logo_64.png'
});
removeTrayMenu = function () {
nw_tray.remove();
nw_tray = null;
}
setTrayMenu = function (items) {
var menu = new nw.Menu();
menu.append(new nw.MenuItem({

Laden…
Annuleren
Opslaan