perf: reduce desktop quit risk polling
Refresh quit risk only when quitting Use in-process status for Electron local server Avoid repeated scheduled task status scans
This commit is contained in:
@@ -1233,6 +1233,12 @@ async function main(options = {}) {
|
||||
getPort: () => tunnelRuntimeContext.getActivePort(),
|
||||
getOpenCodePort: () => openCodePort,
|
||||
getTunnelUrl: () => tunnelService.getPublicUrl(),
|
||||
getQuitRiskStatus: () => ({
|
||||
tunnel: {
|
||||
active: Boolean(tunnelService.getPublicUrl()),
|
||||
},
|
||||
scheduledTasks: scheduledTasksRuntime.getStatus(),
|
||||
}),
|
||||
isReady: () => isOpenCodeReady,
|
||||
restartOpenCode: () => restartOpenCode(),
|
||||
stop: (shutdownOptions = {}) =>
|
||||
|
||||
Reference in New Issue
Block a user