diff --git a/quickshell/DMSShell.qml b/quickshell/DMSShell.qml index c1ff1d81..1462ffc6 100644 --- a/quickshell/DMSShell.qml +++ b/quickshell/DMSShell.qml @@ -474,15 +474,17 @@ Item { PopoutService.settingsModalLoader = settingsModalLoader; } + onActiveChanged: { + if (active && item) { + PopoutService.settingsModal = item; + PopoutService._onSettingsModalLoaded(); + } + } + SettingsModal { id: settingsModal property bool wasShown: false - Component.onCompleted: { - PopoutService.settingsModal = settingsModal; - PopoutService._onSettingsModalLoaded(); - } - onVisibleChanged: { if (visible) { wasShown = true;