Procházet zdrojové kódy

fix the bug that setting debug mode does not take effect immediately

MaysWind před 2 roky
rodič
revize
e5e138921e
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3 1
      app/scripts/core/root.js

+ 3 - 1
app/scripts/core/root.js

@@ -692,7 +692,9 @@
         });
 
         ariaNgNativeElectronService.onMainProcessChangeDevMode(function (event, devMode) {
-            ariaNgSettingService.setDebugMode(devMode);
+            $rootScope.$apply(function () {
+                ariaNgSettingService.setDebugMode(devMode);
+            });
         });
 
         ariaNgSettingService.setDebugMode(ariaNgNativeElectronService.isDevMode());