mirror of
https://github.com/samuelthomas2774/nxapi.git
synced 2026-07-19 00:43:35 -05:00
Fix segfault when running app bundle
This commit is contained in:
parent
4c6353c523
commit
8d38b94dcd
|
|
@ -12,16 +12,17 @@ import { EmbeddedPresenceMonitor, EmbeddedProxyPresenceMonitor } from './monitor
|
|||
|
||||
const debug = createDebug('app:main:menu');
|
||||
|
||||
const icon = nativeImage
|
||||
.createFromPath(path.join(dir, 'resources', 'app', 'menu-icon.png'))
|
||||
.resize({height: 16});
|
||||
|
||||
icon.setTemplateImage(true);
|
||||
|
||||
export default class MenuApp {
|
||||
tray = new Tray(icon);
|
||||
tray: Tray;
|
||||
|
||||
constructor(readonly app: App) {
|
||||
const icon = nativeImage
|
||||
.createFromPath(path.join(dir, 'resources', 'app', 'menu-icon.png'))
|
||||
.resize({height: 16});
|
||||
|
||||
icon.setTemplateImage(true);
|
||||
|
||||
this.tray = new Tray(icon);
|
||||
this.tray.setToolTip('nxapi');
|
||||
|
||||
app.store.on('update-nintendo-accounts', () => this.updateMenu());
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user