Tier 0: render what the services already decided, honestly
Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
@@ -343,12 +343,23 @@ SettingsPage {
|
||||
|
||||
SettingsCard {
|
||||
title: "Reset"
|
||||
subtitle: "Restores the appearance and theme, dock, clock, focus, and display policy, and clears your Home accessory arrangement. Pinned applications, files, and paired devices are not changed."
|
||||
// Every claim here is checked against PreferenceSchema.defaults(), since
|
||||
// a reset is exactly the schema store going back to it. The dock's
|
||||
// pinned applications ARE a schema key (dockPinned), so the shipped
|
||||
// sixteen come back — this sentence used to promise the opposite. Saved
|
||||
// themes (themeProfiles) are a schema key too, and go with them. Files
|
||||
// and Bluetooth pairings are not in the schema and not in the Home
|
||||
// store, and backups live in their own state directory, so all three
|
||||
// genuinely survive.
|
||||
subtitle: "Restores the appearance and theme, the dock and the applications pinned to it, the clock, focus, and display policy, removes any themes you saved, and clears your Home accessory arrangement. Your files, paired devices, and settings backups are not changed."
|
||||
|
||||
SettingRow {
|
||||
id: resetRow
|
||||
|
||||
readonly property bool armed: root.confirming === "reset"
|
||||
// Stays armed while the safety backup is still being written, so
|
||||
// the confirmation does not collapse into a page that looks
|
||||
// untouched during the one window where nothing has happened yet.
|
||||
readonly property bool armed: root.confirming === "reset" || SystemSettings.resetPending
|
||||
|
||||
label: "Restore defaults"
|
||||
detail: resetRow.armed
|
||||
@@ -364,13 +375,18 @@ SettingsPage {
|
||||
|
||||
SettingsButton {
|
||||
text: resetRow.armed ? "Cancel" : "Reset…"
|
||||
enabled: !SystemSettings.resetPending
|
||||
onClicked: root.arm("reset")
|
||||
}
|
||||
|
||||
SettingsButton {
|
||||
visible: resetRow.armed
|
||||
text: "Restore defaults"
|
||||
// Nothing is wiped until the backup lands, so the button
|
||||
// stays occupied for as long as that takes rather than
|
||||
// looking like it did nothing.
|
||||
text: SystemSettings.resetPending ? "Backing up…" : "Restore defaults"
|
||||
tone: "danger"
|
||||
enabled: !SystemSettings.resetPending && !SettingsBackup.busy
|
||||
onClicked: {
|
||||
root.confirming = "";
|
||||
SystemSettings.restoreDefaults();
|
||||
|
||||
Reference in New Issue
Block a user