()
| 101 | }; |
| 102 | |
| 103 | const focusMainWindow = () => { |
| 104 | const window = liveMainWindow(); |
| 105 | if (!window) { |
| 106 | if (connection) void createWindow(connection); |
| 107 | return; |
| 108 | } |
| 109 | if (window.isMinimized()) window.restore(); |
| 110 | if (!window.isVisible()) window.show(); |
| 111 | window.focus(); |
| 112 | }; |
| 113 | |
| 114 | const ensureSingleInstance = () => { |
| 115 | if (!app.requestSingleInstanceLock()) { |
no test coverage detected