1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

clipboard: single disable + read-only history option

This commit is contained in:
bbedward
2025-12-31 09:14:35 -05:00
parent 621710bd86
commit 2dbadfe1b5
8 changed files with 29 additions and 70 deletions

View File

@@ -324,24 +324,14 @@ Item {
expanded: false
visible: configLoaded
SettingsToggleRow {
tab: "clipboard"
tags: ["clipboard", "disable", "manager"]
settingKey: "disabled"
text: I18n.tr("Disable Clipboard Manager")
description: I18n.tr("Disable clipboard manager entirely (requires restart)")
checked: root.config.disabled ?? false
onToggled: checked => root.saveConfig("disabled", checked)
}
SettingsToggleRow {
tab: "clipboard"
tags: ["clipboard", "disable", "history"]
settingKey: "disableHistory"
settingKey: "disabled"
text: I18n.tr("Disable History Persistence")
description: I18n.tr("Clipboard works but nothing saved to disk")
checked: root.config.disableHistory ?? false
onToggled: checked => root.saveConfig("disableHistory", checked)
checked: root.config.disabled ?? false
onToggled: checked => root.saveConfig("disabled", checked)
}
}
}