mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-23 02:23:31 +07:00
Added first launch in-app detection.
This commit is contained in:
parent
263dfcc770
commit
7dae904e6e
@ -1,4 +1,5 @@
|
|||||||
ready(function(){
|
ready(function(){
|
||||||
|
const settings = require('electron-settings');
|
||||||
document.isStarting = true;
|
document.isStarting = true;
|
||||||
registerRepeaterForAllInput();
|
registerRepeaterForAllInput();
|
||||||
registerEventListenerForSettingsInput();
|
registerEventListenerForSettingsInput();
|
||||||
@ -9,6 +10,10 @@ ready(function(){
|
|||||||
reApplyPeriodically(require('electron-settings').get('settings.reapply_periodically'));
|
reApplyPeriodically(require('electron-settings').get('settings.reapply_periodically'));
|
||||||
displayOptionDescription();
|
displayOptionDescription();
|
||||||
document.isStarting = false;
|
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.delete('settings.ryzen_adj_path');
|
||||||
settings.set('settings', {
|
settings.set('settings', {
|
||||||
...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