Show AviaClient's version in the about window
This commit is contained in:
parent
22785a9860
commit
741102d6eb
1 changed files with 8 additions and 0 deletions
|
|
@ -5,6 +5,8 @@ import { updateElectronApp } from "update-electron-app";
|
|||
import { BrowserWindow, Notification, app, shell } from "electron";
|
||||
import started from "electron-squirrel-startup";
|
||||
|
||||
import { aviaVersion } from "../package.json";
|
||||
|
||||
import { autoLaunch } from "./native/autoLaunch";
|
||||
import { setBadgeCount } from "./native/badges";
|
||||
import { config } from "./native/config";
|
||||
|
|
@ -107,6 +109,12 @@ if (acquiredLock) {
|
|||
if (process.platform === "win32") {
|
||||
app.setAppUserModelId("AviaClient");
|
||||
}
|
||||
|
||||
if (process.platform === "darwin") {
|
||||
app.setAboutPanelOptions({
|
||||
version: aviaVersion,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
app.on("second-instance", () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue