mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-21 23:19:09 +00:00
Ux/54 help (#88)
* ux/54-help tooltips * ux/54-help refetch after mutation * ux/54-help broadcast event index * ux/54-help prevent multiple keypresses when key held * ux/54-help fat clock * ux/54-help progress bar user defined * ux/54-help onAir is button * ux/54-help OSC: add missing presenter message * ux/54-help OSC: enable / disable OSC * ux/54-help handle timezone in excel date import * ux/54-help tray left click to show app * ux/54-help create queriable endpoint * ux/54-help fix memoisation in lower thirds * ux/54-help revise icons * ux/54-help clarify text * ux/54-help forgiving text parsing * ux/54-help add smart keywords * ux/54-help version bump
This commit is contained in:
+10
-4
@@ -23,9 +23,7 @@ const nodePath =
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
const { startServer, startOSCServer } = await import(
|
||||
nodePath
|
||||
);
|
||||
const { startServer, startOSCServer } = await import(nodePath);
|
||||
// Start express server
|
||||
loaded = await startServer();
|
||||
|
||||
@@ -61,7 +59,6 @@ if (!lock) {
|
||||
'An instance if the App is already running.'
|
||||
);
|
||||
app.quit();
|
||||
return;
|
||||
} else {
|
||||
app.on('second-instance', (event, commandLine, workingDirectory) => {
|
||||
// Someone tried to run a second instance, we should focus our window.
|
||||
@@ -191,6 +188,15 @@ app.whenReady().then(() => {
|
||||
|
||||
const trayContextMenu = Menu.buildFromTemplate(trayMenuTemplate);
|
||||
tray.setContextMenu(trayContextMenu);
|
||||
|
||||
// on tray click event, show main window
|
||||
tray.on('click', function (e) {
|
||||
if (!win.isVisible()) {
|
||||
win.show();
|
||||
}
|
||||
win.focus();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// unregister shortcuts before quitting
|
||||
|
||||
Reference in New Issue
Block a user