From 47dfcf4baf42c33ca5ee78dd4c0877e894aec1fb Mon Sep 17 00:00:00 2001 From: ATMDA Date: Mon, 10 Nov 2025 00:46:45 -0500 Subject: launcher: python execution like calculator functionality --- modules/launcher/AppList.qml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'modules/launcher/AppList.qml') diff --git a/modules/launcher/AppList.qml b/modules/launcher/AppList.qml index 7f7b843..6217237 100644 --- a/modules/launcher/AppList.qml +++ b/modules/launcher/AppList.qml @@ -52,7 +52,7 @@ StyledListView { const text = search.text; const prefix = Config.launcher.actionPrefix; if (text.startsWith(prefix)) { - for (const action of ["calc", "scheme", "variant"]) + for (const action of ["calc", "python", "scheme", "variant"]) if (text.startsWith(`${prefix}${action} `)) return action; @@ -92,6 +92,14 @@ StyledListView { root.delegate: calcItem } }, + State { + name: "python" + + PropertyChanges { + model.values: [0] + root.delegate: pythonItem + } + }, State { name: "scheme" @@ -239,6 +247,14 @@ StyledListView { } } + Component { + id: pythonItem + + PythonItem { + list: root + } + } + Component { id: schemeItem -- cgit v1.2.3-freya