Commit 5f495860 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

kickoff: Do not reset action for KickoffItemDelegate in Places tab

Clicking an item should switch to the category of the item, but `action:
null` prevents it, which makes Kickoff inconvenient to use for touchscreen
users.

BUG: 446269


(cherry picked from commit 9faefcd2)
parent 0a5f0368
......@@ -120,7 +120,7 @@ T.ItemDelegate {
}
view.currentIndex = index
// if successfully triggered, close popup
if(view.model.trigger(index, "", null)) {
if(view.model.trigger && view.model.trigger(index, "", null)) {
if (plasmoid.hideOnWindowDeactivate) {
plasmoid.expanded = false;
}
......
......@@ -17,7 +17,6 @@ BasePage {
focus: true // needed for Loaders
model: placesCategoryModel
delegate: KickoffItemDelegate {
action: null
url: ""
description: ""
extendHoverMargins: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment