From 5bc8ad64cb761e0cf0bc61a72e73a02be3400580 Mon Sep 17 00:00:00 2001
From: Alfred Neumayer <dev.beidl@gmail.com>
Date: Tue, 17 Jun 2025 15:52:09 +0200
Subject: [PATCH] qml: Don't ask for SIM PIN in greeter mode

UX wise it is annoying to have the SIM PIN dialog take over
the screen twice, so avoid calling it twice with fscrypt enabled.

I call this a win since it fixes UX repetition ("if I want it
gone don't ask me again, goodbye") as well as hiding a problem
of failing DNS requests from various apps when resolving DNS.
---
 qml/Shell.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/qml/Shell.qml
+++ b/qml/Shell.qml
@@ -774,7 +774,7 @@
             deferred: shell.mode === "greeter"
 
             function unlockWhenDoneWithWizard() {
-                if (!active) {
+                if (!active && shell.mode !== "greeter") {
                     ModemConnectivity.unlockAllModems();
                 }
             }
