mirror of https://github.com/keeweb/keeweb
moved app options
parent
20623e4c42
commit
8e4566fe5f
|
@ -73,7 +73,6 @@ app.on('window-all-closed', () => {
|
|||
app.on('ready', () => {
|
||||
perfTimestamps?.push({ name: 'app on ready', ts: process.hrtime() });
|
||||
appReady = true;
|
||||
setAppOptions();
|
||||
setSystemAppearance();
|
||||
createMainWindow();
|
||||
setGlobalShortcuts(appSettings);
|
||||
|
@ -153,11 +152,6 @@ app.getMainWindow = function() {
|
|||
};
|
||||
app.setGlobalShortcuts = setGlobalShortcuts;
|
||||
|
||||
function setAppOptions() {
|
||||
app.commandLine.appendSwitch('disable-background-timer-throttling');
|
||||
perfTimestamps?.push({ name: 'setting app options', ts: process.hrtime() });
|
||||
}
|
||||
|
||||
function readAppSettings() {
|
||||
try {
|
||||
return JSON.parse(fs.readFileSync(appSettingsFileName, 'utf8'));
|
||||
|
@ -486,6 +480,8 @@ function setEnv() {
|
|||
process.env.XDG_CURRENT_DESKTOP = 'Unity';
|
||||
}
|
||||
|
||||
app.commandLine.appendSwitch('disable-background-timer-throttling');
|
||||
|
||||
// disable all caching, since we're not using old profile data anyway
|
||||
app.commandLine.appendSwitch('disable-http-cache');
|
||||
app.commandLine.appendSwitch('disable-gpu-shader-disk-cache');
|
||||
|
|
Loading…
Reference in New Issue