SetupWizard: wait for proper detection of the OS before opening the wizard.

This commit is contained in:
ItsLemmy
2025-10-18 09:26:15 -04:00
parent 2ddfadea27
commit 94f247eefc
2 changed files with 26 additions and 11 deletions
+5 -2
View File
@@ -12,6 +12,7 @@ Singleton {
property string osPretty: ""
property string osLogo: ""
property bool isNixOS: false
property bool isReady: false
// Internal helpers
function buildCandidates(name) {
@@ -79,8 +80,10 @@ Singleton {
const osId = (val("ID") || "").toLowerCase()
root.isNixOS = osId === "nixos" || (root.osPretty || "").toLowerCase().includes("nixos")
const logoName = val("LOGO")
if (logoName)
resolveLogo(logoName)
if (logoName) {
resolveLogo(logoName)
}
root.isReady = true
} catch (e) {
Logger.w("DistroService", "failed to read os-release", e)
}