mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
Added first launch in-app detection.
This commit is contained in:
parent
263dfcc770
commit
7dae904e6e
@ -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
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
|
3
main.js
3
main.js
@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user