summaryrefslogtreecommitdiff
path: root/modules/launcher/AppList.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/launcher/AppList.qml')
-rw-r--r--modules/launcher/AppList.qml78
1 files changed, 0 insertions, 78 deletions
diff --git a/modules/launcher/AppList.qml b/modules/launcher/AppList.qml
index 7f7b843..aab0299 100644
--- a/modules/launcher/AppList.qml
+++ b/modules/launcher/AppList.qml
@@ -50,23 +50,9 @@ StyledListView {
state: {
const text = search.text;
- const prefix = Config.launcher.actionPrefix;
- if (text.startsWith(prefix)) {
- for (const action of ["calc", "scheme", "variant"])
- if (text.startsWith(`${prefix}${action} `))
- return action;
-
- return "actions";
- }
-
return "apps";
}
- onStateChanged: {
- if (state === "scheme" || state === "variant")
- Schemes.reload();
- }
-
states: [
State {
name: "apps"
@@ -76,38 +62,6 @@ StyledListView {
root.delegate: appItem
}
},
- State {
- name: "actions"
-
- PropertyChanges {
- model.values: Actions.query(search.text)
- root.delegate: actionItem
- }
- },
- State {
- name: "calc"
-
- PropertyChanges {
- model.values: [0]
- root.delegate: calcItem
- }
- },
- State {
- name: "scheme"
-
- PropertyChanges {
- model.values: Schemes.query(search.text)
- root.delegate: schemeItem
- }
- },
- State {
- name: "variant"
-
- PropertyChanges {
- model.values: M3Variants.query(search.text)
- root.delegate: variantItem
- }
- }
]
transitions: Transition {
@@ -222,36 +176,4 @@ StyledListView {
visibilities: root.visibilities
}
}
-
- Component {
- id: actionItem
-
- ActionItem {
- list: root
- }
- }
-
- Component {
- id: calcItem
-
- CalcItem {
- list: root
- }
- }
-
- Component {
- id: schemeItem
-
- SchemeItem {
- list: root
- }
- }
-
- Component {
- id: variantItem
-
- VariantItem {
- list: root
- }
- }
}