aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2018-04-02 19:53:15 +0200
committerLibravatar Stefan Malzner <stefan@adlk.io>2018-04-02 19:53:15 +0200
commit5ef6630d8a1998d611ca94850878aec18ec13166 (patch)
treeeed15c06c7a24bd379f8f45f224f9928d84fa6ed /src/index.js
parentminor style fix (diff)
parentMerge pull request #856 from meetfranz/feature/disable-gpu-acceleration (diff)
downloadferdium-app-5ef6630d8a1998d611ca94850878aec18ec13166.tar.gz
ferdium-app-5ef6630d8a1998d611ca94850878aec18ec13166.tar.zst
ferdium-app-5ef6630d8a1998d611ca94850878aec18ec13166.zip
Merge branch 'develop' of github.com:meetfranz/franz into develop
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/index.js b/src/index.js
index 897943a85..5ba901b89 100644
--- a/src/index.js
+++ b/src/index.js
@@ -12,6 +12,8 @@ import handleDeepLink from './electron/deepLinking';
12import { appId } from './package.json'; // eslint-disable-line import/no-unresolved 12import { appId } from './package.json'; // eslint-disable-line import/no-unresolved
13import './electron/exception'; 13import './electron/exception';
14 14
15const debug = require('debug')('App');
16
15// Keep a global reference of the window object, if you don't, the window will 17// Keep a global reference of the window object, if you don't, the window will
16// be closed automatically when the JavaScript object is garbage collected. 18// be closed automatically when the JavaScript object is garbage collected.
17let mainWindow; 19let mainWindow;
@@ -57,6 +59,12 @@ if (isLinux && ['Pantheon', 'Unity:Unity7'].indexOf(process.env.XDG_CURRENT_DESK
57// Initialize Settings 59// Initialize Settings
58const settings = new Settings(); 60const settings = new Settings();
59 61
62// Disable GPU acceleration
63if (!settings.get('enableGPUAcceleration')) {
64 debug('Disable GPU Acceleration');
65 app.disableHardwareAcceleration();
66}
67
60const createWindow = () => { 68const createWindow = () => {
61 // Remember window size 69 // Remember window size
62 const mainWindowState = windowStateKeeper({ 70 const mainWindowState = windowStateKeeper({