Fix undefined reference to webShortcutModel

This was incorrectly capitalized, so I just went ahead and properly
capitalized it so we stop making this mistake!

(cherry picked from commit 80923a2025)
This commit is contained in:
Joshua Goins
2025-05-14 17:51:21 -04:00
parent f6183a4689
commit 0237bf048b

View File

@@ -105,20 +105,20 @@ DelegateContextMenu {
Kirigami.Action { Kirigami.Action {
id: webShortcutModelAction id: webShortcutModelAction
text: i18n("Search for '%1'", webshortcutModel.trunkatedSearchText) text: i18n("Search for '%1'", webShortcutModel.trunkatedSearchText)
icon.name: "search-symbolic" icon.name: "search-symbolic"
visible: webshortcutModel.enabled visible: webShortcutModel.enabled
readonly property Instantiator instantiator: Instantiator { readonly property Instantiator instantiator: Instantiator {
model: WebShortcutModel { model: WebShortcutModel {
id: webshortcutModel id: webShortcutModel
selectedText: root.selectedText.length > 0 ? root.selectedText : root.plainText selectedText: root.selectedText.length > 0 ? root.selectedText : root.plainText
onOpenUrl: url => RoomManager.resolveResource(url.toString()) onOpenUrl: url => RoomManager.resolveResource(url.toString())
} }
delegate: QQC2.Action { delegate: QQC2.Action {
text: model.display text: model.display
icon.name: model.decoration icon.name: model.decoration
onTriggered: webshortcutModel.trigger(model.edit) onTriggered: webShortcutModel.trigger(model.edit)
} }
onObjectAdded: (index, object) => webShortcutModelAction.children.push(object) onObjectAdded: (index, object) => webShortcutModelAction.children.push(object)
} }
@@ -127,7 +127,7 @@ DelegateContextMenu {
Kirigami.Action { Kirigami.Action {
text: i18n("Configure Web Shortcuts…") text: i18n("Configure Web Shortcuts…")
icon.name: "configure" icon.name: "configure"
visible: !Controller.isFlatpak && webshortcutModel.enabled visible: !Controller.isFlatpak && webShortcutModel.enabled
onTriggered: webshortcutModel.configureWebShortcuts() onTriggered: webShortcutModel.configureWebShortcuts()
} }
} }