Ver código fonte

Added Quit App functionality

iainsaxonhome 3 anos atrás
pai
commit
79a45547f5
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      native/nativeshell.js

+ 5 - 0
native/nativeshell.js

@@ -8,6 +8,7 @@ const features = [
     "externallinks",
     "clientsettings",
     "multiserver",
+    "quitapp",
     "remotecontrol",
     "fullscreenchange",
     "filedownload",
@@ -55,6 +56,10 @@ window.NativeShell = {
         showSettingsModal();
     },
 
+    quitApp() {
+        window.api.system.exit();
+    },
+
     getPlugins() {
         return plugins;
     }