()
| 117 | }; |
| 118 | |
| 119 | const focusMainWindow = () => { |
| 120 | const window = liveMainWindow(); |
| 121 | if (!window) { |
| 122 | if (connection) void createWindow(connection); |
| 123 | return; |
| 124 | } |
| 125 | if (window.isMinimized()) window.restore(); |
| 126 | if (!window.isVisible()) window.show(); |
| 127 | window.focus(); |
| 128 | }; |
| 129 | |
| 130 | const ensureSingleInstance = () => { |
| 131 | if (!app.requestSingleInstanceLock()) { |
no test coverage detected