mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
network: big feature enrichment
- Dedicated view in settings - VPN profile management - Ethernet disconnection - Turn prompts into floating windows
This commit is contained in:
@@ -65,13 +65,16 @@ DankPopout {
|
||||
shouldBeVisible: false
|
||||
|
||||
property bool credentialsPromptOpen: NetworkService.credentialsRequested
|
||||
property bool wifiPasswordModalOpen: PopoutService.wifiPasswordModal?.visible ?? false
|
||||
property bool polkitModalOpen: PopoutService.polkitAuthModal?.visible ?? false
|
||||
property bool anyModalOpen: credentialsPromptOpen || wifiPasswordModalOpen || polkitModalOpen || powerMenuOpen
|
||||
|
||||
backgroundInteractive: !anyModalOpen
|
||||
|
||||
customKeyboardFocus: {
|
||||
if (!shouldBeVisible)
|
||||
return WlrKeyboardFocus.None;
|
||||
if (powerMenuOpen)
|
||||
return WlrKeyboardFocus.None;
|
||||
if (credentialsPromptOpen)
|
||||
if (anyModalOpen)
|
||||
return WlrKeyboardFocus.None;
|
||||
if (CompositorService.isHyprland)
|
||||
return WlrKeyboardFocus.OnDemand;
|
||||
|
||||
Reference in New Issue
Block a user