1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

Keep SpotlightModal always loaded.

Tbh, probably minimal impact on memory - makes app launching snappier.
This commit is contained in:
bbedward
2025-09-30 17:07:57 -04:00
parent acf6e72f35
commit d67bcb66c9
2 changed files with 3 additions and 1 deletions

View File

@@ -34,6 +34,7 @@ PanelWindow {
property bool shouldHaveFocus: shouldBeVisible
property bool allowFocusOverride: false
property bool allowStacking: false
property bool keepContentLoaded: false
signal opened
signal dialogClosed
@@ -171,7 +172,7 @@ PanelWindow {
id: contentLoader
anchors.fill: parent
active: root.shouldBeVisible || root.visible
active: root.keepContentLoaded || root.shouldBeVisible || root.visible
asynchronous: false
}

View File

@@ -55,6 +55,7 @@ DankModal {
borderColor: Theme.outlineMedium
borderWidth: 1
enableShadow: true
keepContentLoaded: true
onVisibleChanged: () => {
if (visible && !spotlightOpen) {
show()