mirror of
https://github.com/smartfrigde/armcord.git
synced 2024-08-14 23:56:58 +00:00
Fix Windows tray ico scaling
This commit is contained in:
parent
6966219255
commit
147f361341
2 changed files with 2 additions and 3 deletions
|
@ -19,7 +19,6 @@ export var settings: any;
|
||||||
export var customTitlebar: boolean;
|
export var customTitlebar: boolean;
|
||||||
export var clientName: "ArmCord";
|
export var clientName: "ArmCord";
|
||||||
|
|
||||||
|
|
||||||
if (!app.requestSingleInstanceLock()) {
|
if (!app.requestSingleInstanceLock()) {
|
||||||
// kill if 2nd instance
|
// kill if 2nd instance
|
||||||
app.quit();
|
app.quit();
|
||||||
|
|
|
@ -156,7 +156,7 @@ async function doAfterDefiningTheWindow() {
|
||||||
let trayPath = nativeImage.createFromPath(path.join(app.getPath("temp"), "/", "tray.png"));
|
let trayPath = nativeImage.createFromPath(path.join(app.getPath("temp"), "/", "tray.png"));
|
||||||
if (process.platform === "darwin" && trayPath.getSize().height > 22)
|
if (process.platform === "darwin" && trayPath.getSize().height > 22)
|
||||||
trayPath = trayPath.resize({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});
|
trayPath = trayPath.resize({height: 64});
|
||||||
tray.setImage(trayPath);
|
tray.setImage(trayPath);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue