mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-07-20 15:07:00 +00:00
Added about dialog
This commit is contained in:
parent
795393e69a
commit
ff19f76f7e
2 changed files with 25 additions and 2 deletions
|
@ -62,13 +62,14 @@ export class Updater {
|
|||
public static updateDownloaded: boolean = false;
|
||||
public static updateProgress: number = 0;
|
||||
public static checkForUpdatesOnStart: boolean = true;
|
||||
public static releaseChannel = 'stable';
|
||||
|
||||
static {
|
||||
Updater.localPackageJson = JSON.parse(fs.readFileSync(path.join(Updater.appPath, './package.json'), 'utf8'));
|
||||
|
||||
let updaterSettings = Store.get('updater');
|
||||
if (updaterSettings !== null) {
|
||||
Updater.localPackageJson.channel = updaterSettings.channel === undefined ? 'stable' : updaterSettings.channel;
|
||||
Updater.localPackageJson.channel = updaterSettings.channel === undefined ? Updater.localPackageJson.channel : updaterSettings.channel;
|
||||
Updater.checkForUpdatesOnStart = updaterSettings.checkForUpdatesOnStart === undefined ? true : updaterSettings.checkForUpdatesOnStart;
|
||||
}
|
||||
|
||||
|
@ -77,6 +78,7 @@ export class Updater {
|
|||
'checkForUpdatesOnStart': Updater.checkForUpdatesOnStart,
|
||||
}
|
||||
|
||||
Updater.releaseChannel = Updater.localPackageJson.channel;
|
||||
Store.set('updater', updaterSettings);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue