mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
Attempts to improve startup time
This commit is contained in:
17
shell.qml
17
shell.qml
@@ -1,3 +1,6 @@
|
||||
//@ pragma Env QSG_RENDER_LOOP=threaded
|
||||
//@ pragma UseQApplication
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
|
||||
@@ -6,27 +9,17 @@ ShellRoot {
|
||||
|
||||
readonly property bool runGreeter: Quickshell.env("DMS_RUN_GREETER") === "1" || Quickshell.env("DMS_RUN_GREETER") === "true"
|
||||
|
||||
Component {
|
||||
id: shellComponent
|
||||
DMSShell {}
|
||||
}
|
||||
|
||||
Component {
|
||||
id: greeterComponent
|
||||
DMSGreeter {}
|
||||
}
|
||||
|
||||
Loader {
|
||||
id: dmsShellLoader
|
||||
asynchronous: false
|
||||
sourceComponent: shellComponent
|
||||
sourceComponent: DMSShell {}
|
||||
active: !entrypoint.runGreeter
|
||||
}
|
||||
|
||||
Loader {
|
||||
id: dmsGreeterLoader
|
||||
asynchronous: false
|
||||
sourceComponent: greeterComponent
|
||||
sourceComponent: DMSGreeter {}
|
||||
active: entrypoint.runGreeter
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user