mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-12 23:32:50 -04:00
quickshell: drop support for 0.2, require 0.3+
- Remove all compat code - Rewire LegacyNetworkService to use Quickshell.Networking - Add parentWindow to settings child windows
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import QtQuick
|
||||
import Quickshell.Wayland
|
||||
import qs.Common
|
||||
import qs.Modals
|
||||
import qs.Services
|
||||
import qs.Widgets
|
||||
|
||||
@@ -18,9 +19,23 @@ DankPopout {
|
||||
|
||||
property bool _reopenAfterUpgrade: false
|
||||
|
||||
readonly property bool polkitModalOpen: PopoutService.polkitAuthModal?.visible ?? false
|
||||
readonly property bool polkitModalOpen: polkitAuthSurfaceModal.shouldBeVisible
|
||||
readonly property bool anyModalOpen: polkitModalOpen
|
||||
|
||||
Connections {
|
||||
target: PolkitService.agent
|
||||
enabled: PolkitService.polkitAvailable && systemUpdatePopout.shouldBeVisible
|
||||
|
||||
function onAuthenticationRequestStarted() {
|
||||
polkitAuthSurfaceModal.open();
|
||||
}
|
||||
}
|
||||
|
||||
PolkitAuthSurfaceModal {
|
||||
id: polkitAuthSurfaceModal
|
||||
parentPopout: systemUpdatePopout
|
||||
}
|
||||
|
||||
backgroundInteractive: !anyModalOpen
|
||||
|
||||
customKeyboardFocus: {
|
||||
@@ -33,16 +48,6 @@ DankPopout {
|
||||
return WlrKeyboardFocus.Exclusive;
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: PolkitService.agent
|
||||
enabled: PolkitService.polkitAvailable && triggerScreen !== null
|
||||
|
||||
function onAuthenticationRequestStarted() {
|
||||
if (PopoutService.polkitAuthModal && triggerScreen)
|
||||
PopoutService.polkitAuthModal.screen = triggerScreen;
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: SystemUpdateService
|
||||
function onIsUpgradingChanged() {
|
||||
|
||||
Reference in New Issue
Block a user