No forgetting, deleting or clearing on a single press, anywhere

Claude-Session: https://claude.ai/code/session_01Ms2FbjQy31TVf3CEvQhGM8
This commit is contained in:
Gabriel Brown
2026-08-25 00:41:39 -04:00
parent 88371d19f0
commit f9e5d3f470
8 changed files with 267 additions and 84 deletions
@@ -529,16 +529,29 @@ Column {
SettingRow {
width: parent.width
label: "Delete this mode"
detail: "Removes it and its exceptions for good"
controlWidth: 90
// The permanence is said on the armed press, where it is the
// question being answered, rather than under a button that had
// already done it by the time the sentence was read.
detail: deleteConfirm.armed
? "Removes " + (root.modeName === "" ? "this mode" : root.modeName)
+ (root.allow.length === 0
? ""
: " and its " + root.allow.length
+ (root.allow.length === 1 ? " exception" : " exceptions"))
+ " for good"
: "Takes it out of the list"
controlWidth: deleteConfirm.armed ? 180 : 90
divider: false
SettingsButton {
ConfirmAction {
id: deleteConfirm
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
text: "Delete"
tone: "danger"
onClicked: FocusModes.removeMode(root.modeId)
actionId: "focus-mode-delete:" + root.modeId
armText: "Delete…"
confirmText: "Delete it"
onConfirmed: FocusModes.removeMode(root.modeId)
}
}
}