on xenial help sign in
Don't reset search string after 2 seconds
e9b881cMichal Hruby
qml/Dash/GenericScopeView.qml−9
@@ -38,11 +38,8 @@ FocusScope {
38 property bool enableHeightBehaviorOnNextCreation: false
38 property bool enableHeightBehaviorOnNextCreation: false
39 property var categoryView: categoryView
39 property var categoryView: categoryView
40
40
41− // FIXME delay the search so that daemons have time to settle, note that
42− // removing this will break ScopeView::test_changeScope
43 onScopeChanged: {
41 onScopeChanged: {
44 if (scope) {
42 if (scope) {
45− timer.restart();
46 scope.activateApplication.connect(activateApp);
43 scope.activateApplication.connect(activateApp);
47 }
44 }
48 }
45 }
@@ -57,12 +54,6 @@ FocusScope {
57 value: isCurrent && !previewListView.open
54 value: isCurrent && !previewListView.open
58 }
55 }
59
56
60− Timer {
61− id: timer
62− interval: 2000
63− onTriggered: scope.searchQuery = ""
64− }
65−
66 SortFilterProxyModel {
57 SortFilterProxyModel {
67 id: categoryFilter
58 id: categoryFilter
68 model: scope ? scope.categories : null
59 model: scope ? scope.categories : null