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 clientName: "ArmCord"; | ||||
| 
 | ||||
| 
 | ||||
| if (!app.requestSingleInstanceLock()) { | ||||
|     // kill if 2nd instance
 | ||||
|     app.quit(); | ||||
|  | @ -86,4 +85,4 @@ if (!app.requestSingleInstanceLock()) { | |||
|             if (BrowserWindow.getAllWindows().length === 0) await init(); | ||||
|         }); | ||||
|     }); | ||||
| } | ||||
| } | ||||
|  |  | |||
|  | @ -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); | ||||
|         }); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue