diff options
Diffstat (limited to 'raveos-calamares-module/wifi/WifiViewStep.cpp')
| -rw-r--r-- | raveos-calamares-module/wifi/WifiViewStep.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/raveos-calamares-module/wifi/WifiViewStep.cpp b/raveos-calamares-module/wifi/WifiViewStep.cpp index 5b55078..350bd43 100644 --- a/raveos-calamares-module/wifi/WifiViewStep.cpp +++ b/raveos-calamares-module/wifi/WifiViewStep.cpp @@ -121,23 +121,18 @@ bool WifiViewStep::isAtEnd() const Calamares::JobList WifiViewStep::jobs() const { - // WiFi persistence disabled - connection only works during installation - // The WiFi module only provides network connectivity for the installer return Calamares::JobList(); } void WifiViewStep::onActivate() { - // Force update locale from GlobalStorage QString newLocale = getLocale(); m_locale = newLocale; - // Update QML context property if (m_quickWidget) { m_quickWidget->rootContext()->setContextProperty("systemLocale", m_locale); - // Force QML to re-read the locale by calling a method on root object QQuickItem* root = m_quickWidget->rootObject(); if (root) { @@ -145,13 +140,10 @@ void WifiViewStep::onActivate() } } - // Start network check timer m_networkCheckTimer->start(2000); - // Check initial network state m_lastNetworkState = hasActiveNetwork(); - // Auto-skip ONLY on first activation AND if there's network if (m_firstActivation && m_lastNetworkState) { m_firstActivation = false; @@ -159,13 +151,10 @@ void WifiViewStep::onActivate() return; } - // Mark as no longer first activation m_firstActivation = false; - // Normal activation - show WiFi setup m_networkManager->scan(); - // Emit initial state emit nextStatusChanged(m_lastNetworkState); } @@ -225,9 +214,7 @@ QString WifiViewStep::getLocale() const if (gs) { - // Check all possible locale keys that Calamares might use - // Key 1: "locale" (direct string) if (gs->contains("locale")) { QString loc = gs->value("locale").toString(); @@ -235,7 +222,6 @@ QString WifiViewStep::getLocale() const return loc; } - // Key 2: "lang" (some modules use this) if (gs->contains("lang")) { QString loc = gs->value("lang").toString(); @@ -243,7 +229,6 @@ QString WifiViewStep::getLocale() const return loc; } - // Key 3: "language" if (gs->contains("language")) { QString loc = gs->value("language").toString(); @@ -251,7 +236,6 @@ QString WifiViewStep::getLocale() const return loc; } - // Key 4: "localeConf" map with LANG key if (gs->contains("localeConf")) { QVariantMap localeConf = gs->value("localeConf").toMap(); @@ -263,7 +247,6 @@ QString WifiViewStep::getLocale() const } } - // Key 5: Check for region-based locale if (gs->contains("locationRegion")) { QString region = gs->value("locationRegion").toString(); @@ -273,12 +256,9 @@ QString WifiViewStep::getLocale() const } } - // Key 6: "localeIndex" - welcome module sometimes stores index - // We'd need to map this to actual locale } } - // Fallback to system locale return QLocale::system().name(); } |