mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
clipboard: remove ownership option
This commit is contained in:
@@ -34,8 +34,36 @@ Item {
|
||||
value: 500
|
||||
},
|
||||
{
|
||||
text: "1000",
|
||||
text: "1,000",
|
||||
value: 1000
|
||||
},
|
||||
{
|
||||
text: "10,000",
|
||||
value: 10000
|
||||
},
|
||||
{
|
||||
text: "15,000",
|
||||
value: 15000
|
||||
},
|
||||
{
|
||||
text: "20,000",
|
||||
value: 20000
|
||||
},
|
||||
{
|
||||
text: "30,000",
|
||||
value: 30000
|
||||
},
|
||||
{
|
||||
text: "50,000",
|
||||
value: 50000
|
||||
},
|
||||
{
|
||||
text: "100,000",
|
||||
value: 100000
|
||||
},
|
||||
{
|
||||
text: "∞",
|
||||
value: -1
|
||||
}
|
||||
]
|
||||
|
||||
@@ -98,11 +126,13 @@ Item {
|
||||
]
|
||||
|
||||
function getMaxHistoryText(value) {
|
||||
if (value <= 0)
|
||||
return "∞";
|
||||
for (let opt of maxHistoryOptions) {
|
||||
if (opt.value === value)
|
||||
return opt.text;
|
||||
}
|
||||
return String(value);
|
||||
return value.toLocaleString();
|
||||
}
|
||||
|
||||
function getMaxEntrySizeText(value) {
|
||||
@@ -312,16 +342,6 @@ Item {
|
||||
checked: root.config.disableHistory ?? false
|
||||
onToggled: checked => root.saveConfig("disableHistory", checked)
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
tab: "clipboard"
|
||||
tags: ["clipboard", "disable", "persist", "ownership"]
|
||||
settingKey: "disablePersist"
|
||||
text: I18n.tr("Disable Clipboard Ownership")
|
||||
description: I18n.tr("Don't preserve clipboard when apps close")
|
||||
checked: root.config.disablePersist ?? true
|
||||
onToggled: checked => root.saveConfig("disablePersist", checked)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user