()
| 111 | }; |
| 112 | |
| 113 | const focusMainWindow = () => { |
| 114 | const window = liveMainWindow(); |
| 115 | if (!window) { |
| 116 | if (connection) void createWindow(connection); |
| 117 | return; |
| 118 | } |
| 119 | if (window.isMinimized()) window.restore(); |
| 120 | if (!window.isVisible()) window.show(); |
| 121 | window.focus(); |
| 122 | }; |
| 123 | |
| 124 | const ensureSingleInstance = () => { |
| 125 | if (!app.requestSingleInstanceLock()) { |
no test coverage detected