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:
Joshua Goins
2026-01-14 20:59:26 -05:00
parent e3307326ef
commit 644df80090

View File

@@ -373,7 +373,7 @@ KirigamiComponents.ConvergentContextMenu {
Kirigami.Action {
text: i18nc("@action:inmenu", "Configure Web Shortcuts…")
icon.name: "configure"
visible: !Controller.isFlatpak && webShortcutModel.enabled
visible: !Controller.isFlatpak && webShortcutModel.enabled && webShortcutModelAction.visible
onTriggered: webShortcutModel.configureWebShortcuts()
}