mirror of https://github.com/keeweb/keeweb.git
disable timer throttling
This commit is contained in:
parent
5b87b9a560
commit
0b167536b7
|
@ -46,6 +46,7 @@ app.on('window-all-closed', function() {
|
|||
}
|
||||
});
|
||||
app.on('ready', function() {
|
||||
setAppOptions();
|
||||
createMainWindow();
|
||||
setGlobalShortcuts();
|
||||
});
|
||||
|
@ -90,6 +91,10 @@ app.getMainWindow = function() {
|
|||
return mainWindow;
|
||||
};
|
||||
|
||||
function setAppOptions() {
|
||||
app.commandLine.appendSwitch('disable-background-timer-throttling');
|
||||
}
|
||||
|
||||
function createMainWindow() {
|
||||
mainWindow = new BrowserWindow({
|
||||
show: false,
|
||||
|
|
Loading…
Reference in New Issue