mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Fix tray icon behaviour
This commit is contained in:
		
							parent
							
								
									6d491437e4
								
							
						
					
					
						commit
						4937a2cddf
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -5,9 +5,12 @@ import {getConfig, getConfigLocation, getDisplayVersion, setWindowState} from ". | ||||||
| import * as path from "path"; | import * as path from "path"; | ||||||
| import {createSettingsWindow} from "./settings/main"; | import {createSettingsWindow} from "./settings/main"; | ||||||
| export let tray: any = null; | export let tray: any = null; | ||||||
|  | let trayIcon = "ac_plug_colored"; | ||||||
| app.whenReady().then(async () => { | app.whenReady().then(async () => { | ||||||
|     let finishedSetup = await getConfig("doneSetup"); |     let finishedSetup = await getConfig("doneSetup"); | ||||||
|     let trayIcon = (await getConfig("trayIcon")) ?? "ac_plug_colored"; |     if ((await getConfig("trayIcon")) != "default") { | ||||||
|  |         trayIcon = await getConfig("trayIcon"); | ||||||
|  |     } | ||||||
|     let trayPath = nativeImage.createFromPath(path.join(__dirname, "../", `/assets/${trayIcon}.png`)); |     let trayPath = nativeImage.createFromPath(path.join(__dirname, "../", `/assets/${trayIcon}.png`)); | ||||||
|     let trayVerIcon; |     let trayVerIcon; | ||||||
|     trayVerIcon = function () { |     trayVerIcon = function () { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue