Fix Windows tray ico scaling

This commit is contained in:
smartfridge 2022-12-13 20:23:17 +01:00
parent 6966219255
commit 147f361341
2 changed files with 2 additions and 3 deletions

View file

@ -19,7 +19,6 @@ export var settings: any;
export var customTitlebar: boolean;
export var clientName: "ArmCord";
if (!app.requestSingleInstanceLock()) {
// kill if 2nd instance
app.quit();

View file

@ -156,7 +156,7 @@ async function doAfterDefiningTheWindow() {
let trayPath = nativeImage.createFromPath(path.join(app.getPath("temp"), "/", "tray.png"));
if (process.platform === "darwin" && trayPath.getSize().height > 22)
trayPath = trayPath.resize({height: 22});
if (process.platform === "win32" && trayPath.getSize().height > 22)
if (process.platform === "win32" && trayPath.getSize().height > 64)
trayPath = trayPath.resize({height: 64});
tray.setImage(trayPath);
});