diff options
Diffstat (limited to 'packages/meshbay-client')
| -rw-r--r-- | packages/meshbay-client/src/main.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/meshbay-client/src/main.js b/packages/meshbay-client/src/main.js index 6c92531..b0505a9 100644 --- a/packages/meshbay-client/src/main.js +++ b/packages/meshbay-client/src/main.js @@ -898,10 +898,17 @@ function registerBridge() { ipcMain.handle('node:service-status', async () => { if (process.platform === 'win32') { // No Task Scheduler to ask "is it running" — probe the daemon itself. - const p = await probeNode(); + // `installed` used to be winAutostartInstalled(), which is wrong: it + // answers "does the Startup launcher exist", not "is there a daemon to + // manage". The Node page's Stop/Restart buttons are gated on + // `installed`, so with no autostart configured they silently vanished + // — the daemon was perfectly manageable, just not launchable at + // sign-in. `autostart` carries that state as its own field instead. + const [p, bin] = await Promise.all([probeNode(), findNodeBinary()]); return { supported: true, - installed: winAutostartInstalled(), + installed: Boolean(bin), + autostart: winAutostartInstalled(), activeState: p ? 'active' : 'inactive', subState: p ? 'running' : '', }; |