Added first launch in-app detection.

This commit is contained in:
Quentin Decaunes 2019-03-02 18:33:11 +01:00
parent 263dfcc770
commit 7dae904e6e
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,5 @@
ready(function(){
const settings = require('electron-settings');
document.isStarting = true;
registerRepeaterForAllInput();
registerEventListenerForSettingsInput();
@ -9,6 +10,10 @@ ready(function(){
reApplyPeriodically(require('electron-settings').get('settings.reapply_periodically'));
displayOptionDescription();
document.isStarting = false;
settings.set('settings', {
...settings.get('settings'),
first_launch: false
});
});
/**

View File

@ -18,7 +18,8 @@ if (settings.get('settings.last_used_version') !== require('./package.json').ver
settings.delete('settings.ryzen_adj_path');
settings.set('settings', {
...settings.set('settings'),
last_used_version: require('./package.json').version
last_used_version: require('./package.json').version,
first_launch: true,
});
}