Don't show "Configure Web Shortcuts" if there are none
This prevents some weird edge cases where the Configure action is visible, but nothing is actually searchable - like for images.
This commit is contained in:
@@ -373,7 +373,7 @@ KirigamiComponents.ConvergentContextMenu {
|
|||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: i18nc("@action:inmenu", "Configure Web Shortcuts…")
|
text: i18nc("@action:inmenu", "Configure Web Shortcuts…")
|
||||||
icon.name: "configure"
|
icon.name: "configure"
|
||||||
visible: !Controller.isFlatpak && webShortcutModel.enabled
|
visible: !Controller.isFlatpak && webShortcutModel.enabled && webShortcutModelAction.visible
|
||||||
onTriggered: webShortcutModel.configureWebShortcuts()
|
onTriggered: webShortcutModel.configureWebShortcuts()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user