mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 15:32:50 -05:00
Alter loading behavior
This commit is contained in:
@@ -10,7 +10,11 @@ ShellRoot {
|
|||||||
|
|
||||||
WlSessionLock {
|
WlSessionLock {
|
||||||
id: sessionLock
|
id: sessionLock
|
||||||
locked: true
|
locked: false
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
Qt.callLater(() => { locked = true })
|
||||||
|
}
|
||||||
|
|
||||||
onLockedChanged: {
|
onLockedChanged: {
|
||||||
if (!locked) {
|
if (!locked) {
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
//@ pragma Env QSG_RENDER_LOOP=threaded
|
||||||
|
//@ pragma UseQApplication
|
||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Io
|
import Quickshell.Io
|
||||||
@@ -26,7 +29,9 @@ import qs.Modules.Plugins
|
|||||||
import qs.Services
|
import qs.Services
|
||||||
|
|
||||||
|
|
||||||
Item {
|
ShellRoot {
|
||||||
|
id: root
|
||||||
|
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
PortalService.init()
|
PortalService.init()
|
||||||
// Initialize DisplayService night mode functionality
|
// Initialize DisplayService night mode functionality
|
||||||
|
|||||||
@@ -16,4 +16,8 @@ gestures {
|
|||||||
hot-corners {
|
hot-corners {
|
||||||
off
|
off
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
layout {
|
||||||
|
background-color "#000000"
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,8 @@
|
|||||||
//@ pragma Env QSG_RENDER_LOOP=threaded
|
|
||||||
//@ pragma UseQApplication
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
|
|
||||||
ShellRoot {
|
ShellRoot {
|
||||||
id: root
|
id: entrypoint
|
||||||
|
|
||||||
readonly property bool runGreeter: Quickshell.env("DMS_RUN_GREETER") === "1" || Quickshell.env("DMS_RUN_GREETER") === "true"
|
readonly property bool runGreeter: Quickshell.env("DMS_RUN_GREETER") === "1" || Quickshell.env("DMS_RUN_GREETER") === "true"
|
||||||
|
|
||||||
@@ -12,13 +10,13 @@ ShellRoot {
|
|||||||
id: dmsShellLoader
|
id: dmsShellLoader
|
||||||
asynchronous: false
|
asynchronous: false
|
||||||
sourceComponent: DMSShell{}
|
sourceComponent: DMSShell{}
|
||||||
active: !root.runGreeter
|
active: !entrypoint.runGreeter
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: dmsGreeterLoader
|
id: dmsGreeterLoader
|
||||||
asynchronous: false
|
asynchronous: false
|
||||||
sourceComponent: DMSGreeter{}
|
sourceComponent: DMSGreeter{}
|
||||||
active: root.runGreeter
|
active: entrypoint.runGreeter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user