feat(launcher): Add toggle for clip plugin preview

This commit is contained in:
loner
2025-11-19 16:07:07 +08:00
parent 529869f796
commit ed373df99d
5 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ import qs.Widgets
SmartPanel {
id: root
readonly property bool previewActive: searchText.startsWith(">clip")
readonly property bool previewActive: searchText.startsWith(">clip") && Settings.data.appLauncher.enableClipPreview
// Panel configuration
readonly property int listPanelWidth: Math.round(600 * Style.uiScaleRatio)
@@ -65,6 +65,13 @@ ColumnLayout {
onToggled: checked => Settings.data.appLauncher.enableClipboardHistory = checked
}
NToggle {
label: I18n.tr("settings.launcher.settings.clip-preview.label")
description: I18n.tr("settings.launcher.settings.clip-preview.description")
checked: Settings.data.appLauncher.enableClipPreview
onToggled: checked => Settings.data.appLauncher.enableClipPreview = checked
}
NToggle {
label: I18n.tr("settings.launcher.settings.sort-by-usage.label")
description: I18n.tr("settings.launcher.settings.sort-by-usage.description")