소스 검색

Added Quit App functionality

iainsaxonhome 3 년 전
부모
커밋
79a45547f5
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  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;
     }