Skip to content

Commit 6f65b46

Browse files
Copilotnetmindz
andcommitted
Save version when skipping reporting to prevent re-prompting
When users click "Skip reporting" without the checkbox, now saves the current version to version-info.json. This prevents the prompt from appearing again until the version actually changes. Behavior: - Skip without checkbox: Saves version, will prompt on next version - Skip with checkbox: Sets neverAsk=true, never prompts again Co-authored-by: netmindz <442066+netmindz@users.noreply.github.com>
1 parent 231fb5a commit 6f65b46

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wled00/data/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3425,8 +3425,10 @@ function showVersionUpgradePrompt(info, oldVersion, newVersion) {
34253425
// Save "never ask" preference
34263426
updateVersionInfo(newVersion, true, false);
34273427
showToast('You will not be asked again.');
3428+
} else {
3429+
// Save current version to prevent re-prompting until version changes
3430+
updateVersionInfo(newVersion, false, false);
34283431
}
3429-
// Don't update version if not saving choice, will ask again on next load
34303432
});
34313433
}
34323434

0 commit comments

Comments
 (0)