1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-14 01:32:29 -04:00

polkit: allow empty passwords

This commit is contained in:
bbedward
2026-01-30 09:19:10 -05:00
parent 803bc1cb7f
commit f6f7b1ed72

View File

@@ -28,7 +28,7 @@ FloatingWindow {
} }
function submitAuth() { function submitAuth() {
if (passwordInput.length === 0 || !currentFlow || isLoading) if (!currentFlow || isLoading)
return; return;
isLoading = true; isLoading = true;
currentFlow.submit(passwordInput); currentFlow.submit(passwordInput);
@@ -287,7 +287,7 @@ FloatingWindow {
height: 36 height: 36
radius: Theme.cornerRadius radius: Theme.cornerRadius
color: authArea.containsMouse ? Qt.darker(Theme.primary, 1.1) : Theme.primary color: authArea.containsMouse ? Qt.darker(Theme.primary, 1.1) : Theme.primary
enabled: !isLoading && (passwordInput.length > 0 || !(currentFlow?.isResponseRequired ?? true)) enabled: !isLoading
opacity: enabled ? 1 : 0.5 opacity: enabled ? 1 : 0.5
StyledText { StyledText {