1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-31 17:02:51 -05: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() {
if (passwordInput.length === 0 || !currentFlow || isLoading)
if (!currentFlow || isLoading)
return;
isLoading = true;
currentFlow.submit(passwordInput);
@@ -287,7 +287,7 @@ FloatingWindow {
height: 36
radius: Theme.cornerRadius
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
StyledText {