Explorar el Código

Added Quit App functionality

iainsaxonhome hace 3 años
padre
commit
79a45547f5
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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;
     }