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