@@ -157,6 +157,12 @@ async function initializeConfig() {
|
||||
config.on('synchronize', handleConfigSynchronize);
|
||||
config.on('darkModeChange', handleDarkModeChange);
|
||||
handleConfigUpdate(configData);
|
||||
|
||||
// can only call this before the app is ready
|
||||
if (config.enableHardwareAcceleration === false) {
|
||||
app.disableHardwareAcceleration();
|
||||
}
|
||||
|
||||
resolve();
|
||||
});
|
||||
config.init();
|
||||
@@ -194,11 +200,6 @@ function initializeBeforeAppReady() {
|
||||
process.chdir(expectedPath);
|
||||
}
|
||||
|
||||
// can only call this before the app is ready
|
||||
if (config.enableHardwareAcceleration === false) {
|
||||
app.disableHardwareAcceleration();
|
||||
}
|
||||
|
||||
refreshTrayImages(config.trayIconTheme);
|
||||
|
||||
// If there is already an instance, quit this one
|
||||
|
Reference in New Issue
Block a user