Ver Fonte

allowRendererProcessReuse

Eugene Pankov há 4 anos atrás
pai
commit
f92d9c85cb
5 ficheiros alterados com 15 adições e 9 exclusões
  1. 0 1
      app/lib/app.ts
  2. 1 1
      app/lib/window.ts
  3. 1 1
      app/package.json
  4. 1 1
      app/webpack.main.config.js
  5. 12 5
      app/yarn.lock

+ 0 - 1
app/lib/app.ts

@@ -82,7 +82,6 @@ export class Application {
         app.commandLine.appendSwitch('disable-http-cache')
         app.commandLine.appendSwitch('max-active-webgl-contexts', '9000')
         app.commandLine.appendSwitch('lang', 'EN')
-        app.allowRendererProcessReuse = false
 
         for (const flag of configData.flags || [['force_discrete_gpu', '0']]) {
             app.commandLine.appendSwitch(flag[0], flag[1])

+ 1 - 1
app/lib/window.ts

@@ -14,7 +14,7 @@ import { loadConfig } from './config'
 
 let DwmEnableBlurBehindWindow: any = null
 if (process.platform === 'win32') {
-    DwmEnableBlurBehindWindow = require('windows-blurbehind').DwmEnableBlurBehindWindow
+    DwmEnableBlurBehindWindow = require('@tabby-gang/windows-blurbehind').DwmEnableBlurBehindWindow
 }
 
 export interface WindowOptions {

+ 1 - 1
app/package.json

@@ -37,7 +37,7 @@
   "optionalDependencies": {
     "macos-native-processlist": "^2.0.0",
     "serialport": "^10.0.0",
-    "windows-blurbehind": "^1.0.1",
+    "@tabby-gang/windows-blurbehind": "^1.0.1",
     "windows-native-registry": "^3.1.0",
     "windows-process-tree": "^0.3.2"
   },

+ 1 - 1
app/webpack.main.config.js

@@ -51,7 +51,7 @@ module.exports = {
         'source-map-support': 'commonjs source-map-support',
         'windows-swca': 'commonjs windows-swca',
         'windows-native-registry': 'commonjs windows-native-registry',
-        'windows-blurbehind': 'commonjs windows-blurbehind',
+        '@tabby-gang/windows-blurbehind': 'commonjs @tabby-gang/windows-blurbehind',
         'yargs/yargs': 'commonjs yargs/yargs',
     },
     plugins: [

+ 12 - 5
app/yarn.lock

@@ -103,6 +103,13 @@
   dependencies:
     nan "^2.14.0"
 
+"@tabby-gang/windows-blurbehind@^1.0.1":
+  version "3.0.0"
+  resolved "https://registry.yarnpkg.com/@tabby-gang/windows-blurbehind/-/windows-blurbehind-3.0.0.tgz#48d409c2eb14a12c867b70de5ee4d6769ef45e8f"
+  integrity sha512-ah6eJcoQZWOZfu9sd2pWlOJmfl1v+2EZQMeIp7MWvg+/16WS16UFNdnOtlV6AUiABHfZo2QKfCNUEuorCM+Q2A==
+  dependencies:
+    "@types/node" "^10.12.18"
+
 "@types/[email protected]":
   version "2.7.4"
   resolved "https://registry.yarnpkg.com/@types/mz/-/mz-2.7.4.tgz#f9d1535cb5171199b28ae6abd6ec29e856551401"
@@ -115,6 +122,11 @@
   resolved "https://registry.yarnpkg.com/@types/node/-/node-16.0.1.tgz#70cedfda26af7a2ca073fdcc9beb2fff4aa693f8"
   integrity sha512-hBOx4SUlEPKwRi6PrXuTGw1z6lz0fjsibcWCM378YxsSu/6+C30L6CR49zIBKHiwNWCYIcOLjg4OHKZaFeLAug==
 
+"@types/node@^10.12.18":
+  version "10.17.60"
+  resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b"
+  integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==
+
 "@types/semver@^7.3.6":
   version "7.3.9"
   resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.3.9.tgz#152c6c20a7688c30b967ec1841d31ace569863fc"
@@ -3741,11 +3753,6 @@ widest-line@^2.0.0:
   dependencies:
     string-width "^2.1.1"
 
-windows-blurbehind@^1.0.1:
-  version "1.0.1"
-  resolved "https://registry.yarnpkg.com/windows-blurbehind/-/windows-blurbehind-1.0.1.tgz#ff098713873304e38330b2c54cc41bb369b587b9"
-  integrity sha512-1HzHfCiM1ayrbACJu5qE9zELV24uX/tINT6kxaZwLY3rtQAoeav6x9z7LFHWoLaGDN/sYbnK+9Vk0cz7fsk5HQ==
-
 windows-native-registry@^3.1.0:
   version "3.1.0"
   resolved "https://registry.yarnpkg.com/windows-native-registry/-/windows-native-registry-3.1.0.tgz#909ef3254519fdec57d2f149ac59a2c9dc84419a"