Show AviaClient's version in the about window

This commit is contained in:
Amelia Frost 2026-04-04 16:23:39 -07:00
parent 22785a9860
commit 741102d6eb
No known key found for this signature in database

View file

@ -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", () => {