Fix undefined reference to webShortcutModel

This was incorrectly capitalized, so I just went ahead and properly
capitalized it so we stop making this mistake!
This commit is contained in:
Joshua Goins
2025-05-14 17:51:21 -04:00
parent 12882586d3
commit 80923a2025

View File

@@ -119,20 +119,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)
} }
@@ -141,7 +141,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()
} }
} }