This commit is contained in:
shocknet-justin 2025-10-09 19:09:03 -04:00
parent e3e0baed24
commit c60b5103bf

View file

@ -164,8 +164,7 @@ export class Wizard {
if (err != null) { throw new Error(err.message) }
const pendingConfig = { sourceName: req.source_name, relayUrl: req.relay_url, automateLiquidity: req.automate_liquidity, pushBackupsToNostr: req.push_backups_to_nostr }
// If already initialized, treat as idempotent update: persist name/avatar and env settings, do not block.
if (this.IsInitialized()) {
// Persist app name/avatar to DB regardless (idempotent behavior)
try {
const appsList = await this.storage.applicationStorage.GetApplications()
const defaultNames = ['wallet', 'wallet-test', this.settings.defaultAppName]
@ -176,6 +175,9 @@ export class Wizard {
} catch (e) {
this.log(`Error updating app info: ${(e as Error).message}`)
}
// If already initialized, treat as idempotent update for env and exit
if (this.IsInitialized()) {
this.updateEnvFile(pendingConfig)
return
}