mirror of
https://github.com/wled/WLED.git
synced 2026-03-13 08:29:49 +08:00
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>
This commit is contained in:
@@ -3425,8 +3425,10 @@ function showVersionUpgradePrompt(info, oldVersion, newVersion) {
|
||||
// Save "never ask" preference
|
||||
updateVersionInfo(newVersion, true, false);
|
||||
showToast('You will not be asked again.');
|
||||
} else {
|
||||
// Save current version to prevent re-prompting until version changes
|
||||
updateVersionInfo(newVersion, false, false);
|
||||
}
|
||||
// Don't update version if not saving choice, will ask again on next load
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user