summaryrefslogtreecommitdiff
path: root/shell.qml
diff options
context:
space:
mode:
Diffstat (limited to 'shell.qml')
-rw-r--r--shell.qml16
1 files changed, 14 insertions, 2 deletions
diff --git a/shell.qml b/shell.qml
index 085190d..7ef4362 100644
--- a/shell.qml
+++ b/shell.qml
@@ -7,12 +7,24 @@ import QtQuick
Scope {
id: root
+
property var standaloneObj: ({})
+
Bar {}
+
+ PersistentProperties {
+ id: loaderProp
+ reloadableId: "launcherLoaderProp"
+
+ property bool active: false
+ }
LazyLoader {
id: launcherLoader
+
+ active: loaderProp.active
+
component: Launcher {
- parentLoader: launcherLoader
+ parentLoader: loaderProp
}
}
@@ -27,7 +39,7 @@ Scope {
target: "launcher"
function toggle() {
- launcherLoader.active = !launcherLoader.active;
+ loaderProp.active = !loaderProp.active;
}
function standalone(component: string): void {