@samitouri / QOSami-HFS / commits / 8b23bda7

fix: "Open Admin-panel at start" should trigger only once

Massimo Melina committed Apr 1, 2026 at 21:46 UTC 8b23bda76ccffacfe53e6c38d4a7168ccd0a9e2c
1 file changed +4 -1
src/listen.ts
+4 -1
@@ -68,9 +68,12 @@ const considerHttp = debounceAsync(async () => {
68 return
69 httpSrv.on('connection', newConnection)
70 printUrls(httpSrv.name)
71 - if (openBrowserAtStart.get() && !argv.updated)
71 + if (openBrowserAtStart.get() && !argv.updated && openOnce) {
72 + openOnce = false
73 openAdmin()
74 + }
75 })
76 +let openOnce = true
77
78 export const portCfg = defineConfig('port', 80)
79 const listenInterface = defineConfig('listen_interface', '')