summaryrefslogtreecommitdiff
path: root/raveos-calamares-module/wifi/WifiViewStep.cpp
diff options
context:
space:
mode:
authorNippy <nippy@Nippy-Mac-mini.local>2026-10-09 10:49:26 +0200
committerNippy <nippy@Nippy-Mac-mini.local>2026-10-09 10:49:26 +0200
commit91978706279a19a3ac96393630876f3e50cbc518 (patch)
tree1355da60486a305aefeea4e55543bbf1008715b3 /raveos-calamares-module/wifi/WifiViewStep.cpp
parent17a23f8a0cec5439d674d90c593497e4ceed2c68 (diff)
downloadRaveOS-PKGBUILD-91978706279a19a3ac96393630876f3e50cbc518.tar.gz
RaveOS-PKGBUILD-91978706279a19a3ac96393630876f3e50cbc518.zip
fix
Diffstat (limited to 'raveos-calamares-module/wifi/WifiViewStep.cpp')
-rw-r--r--raveos-calamares-module/wifi/WifiViewStep.cpp20
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();
}