style: auto-fix linting issues
This commit is contained in:
parent
ec33a63b4d
commit
41a8a75cb0
1 changed files with 8 additions and 5 deletions
|
|
@ -45,15 +45,19 @@
|
||||||
menuItems: [
|
menuItems: [
|
||||||
{ id: 'show', text: 'Show Monochrome' },
|
{ id: 'show', text: 'Show Monochrome' },
|
||||||
{ id: 'sep', text: '-' },
|
{ id: 'sep', text: '-' },
|
||||||
{ id: 'quit', text: 'Quit' }
|
{ id: 'quit', text: 'Quit' },
|
||||||
]
|
],
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
await Neutralino.os.setTray(tray);
|
await Neutralino.os.setTray(tray);
|
||||||
console.log('[Shell] Tray set successfully');
|
console.log('[Shell] Tray set successfully');
|
||||||
} catch(e) {
|
} catch (e) {
|
||||||
console.error('[Shell] Tray error:', e);
|
console.error('[Shell] Tray error:', e);
|
||||||
await Neutralino.os.showMessageBox('Tray Error', `Failed to set tray: ${JSON.stringify(e)}`, 'ERROR');
|
await Neutralino.os.showMessageBox(
|
||||||
|
'Tray Error',
|
||||||
|
`Failed to set tray: ${JSON.stringify(e)}`,
|
||||||
|
'ERROR'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -71,7 +75,6 @@
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error('[Shell] Failed to init Neutralino:', e);
|
console.error('[Shell] Failed to init Neutralino:', e);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue