mirror of
https://gitlab.com/futo-org/fcast.git
synced 2025-07-19 14:37:00 +00:00
Added about dialog
This commit is contained in:
parent
795393e69a
commit
ff19f76f7e
2 changed files with 25 additions and 2 deletions
|
@ -92,6 +92,26 @@ export default class Main {
|
|||
label: 'Check for updates',
|
||||
click: async () => { await Main.checkForUpdates(false); },
|
||||
},
|
||||
{
|
||||
label: 'About',
|
||||
click: async () => {
|
||||
let aboutMessage = `Version: ${Main.application.getVersion()}\nRelease channel: ${Updater.releaseChannel}\n`;
|
||||
|
||||
if (Updater.releaseChannel !== 'stable') {
|
||||
aboutMessage += `Release channel version: ${Updater.getChannelVersion()}\n`;
|
||||
}
|
||||
|
||||
aboutMessage += `OS: ${process.platform} ${process.arch}\n`;
|
||||
|
||||
await dialog.showMessageBox({
|
||||
type: 'info',
|
||||
title: 'Fcast Receiver',
|
||||
message: aboutMessage,
|
||||
buttons: ['OK'],
|
||||
defaultId: 0
|
||||
});
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
},
|
||||
|
@ -413,7 +433,8 @@ export default class Main {
|
|||
},
|
||||
});
|
||||
Main.logger = log4js.getLogger();
|
||||
Main.logger.info(`Starting application: ${app.name} (${app.getVersion()} - ${Updater.getChannelVersion()}) | ${app.getAppPath()}`);
|
||||
Main.logger.info(`Starting application: ${app.name} (${app.getVersion()} - ${Updater.releaseChannel} - ${Updater.getChannelVersion()}) | ${app.getAppPath()}`);
|
||||
Main.logger.info(`OS: ${process.platform} ${process.arch}`);
|
||||
|
||||
if (isUpdating) {
|
||||
await Updater.processUpdate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue