summaryrefslogtreecommitdiff
path: root/modules/controlcenter/network
diff options
context:
space:
mode:
authorATMDA <atdma2600@gmail.com>2025-11-13 14:41:14 -0500
committerATMDA <atdma2600@gmail.com>2025-11-13 14:41:14 -0500
commit1da9c68be8f336a671f9514cf5feaaf5998da981 (patch)
tree411bc8f03ff86a2b1fadb800708e4a63982cfe5d /modules/controlcenter/network
parentcleanup: trailing whitespace (diff)
downloadcaelestia-shell-1da9c68be8f336a671f9514cf5feaaf5998da981.tar.gz
caelestia-shell-1da9c68be8f336a671f9514cf5feaaf5998da981.tar.bz2
caelestia-shell-1da9c68be8f336a671f9514cf5feaaf5998da981.zip
cleanup: trailing whitespace removeal (entire project)
Diffstat (limited to 'modules/controlcenter/network')
-rw-r--r--modules/controlcenter/network/WirelessDetails.qml6
-rw-r--r--modules/controlcenter/network/WirelessList.qml2
-rw-r--r--modules/controlcenter/network/WirelessPasswordDialog.qml10
3 files changed, 9 insertions, 9 deletions
diff --git a/modules/controlcenter/network/WirelessDetails.qml b/modules/controlcenter/network/WirelessDetails.qml
index 7039720..d5abc9d 100644
--- a/modules/controlcenter/network/WirelessDetails.qml
+++ b/modules/controlcenter/network/WirelessDetails.qml
@@ -26,7 +26,7 @@ Item {
updateDeviceDetails();
checkSavedProfile();
}
-
+
function checkSavedProfile(): void {
// Refresh saved connections list to ensure it's up to date
// This ensures the "Forget Network" button visibility is accurate
@@ -102,7 +102,7 @@ Item {
color: Colours.palette.m3errorContainer
onColor: Colours.palette.m3onErrorContainer
text: qsTr("Forget Network")
-
+
onClicked: {
if (root.network && root.network.ssid) {
// Disconnect first if connected
@@ -184,7 +184,7 @@ Item {
if (root.network.isSecure) {
// Check if we have a saved connection profile for this network (by SSID)
const hasSavedProfile = Network.hasSavedProfile(root.network.ssid);
-
+
if (hasSavedProfile) {
// Try connecting with saved password - don't show dialog if it fails
// The saved password should work, but if connection fails for other reasons,
diff --git a/modules/controlcenter/network/WirelessList.qml b/modules/controlcenter/network/WirelessList.qml
index f861db4..ca6947a 100644
--- a/modules/controlcenter/network/WirelessList.qml
+++ b/modules/controlcenter/network/WirelessList.qml
@@ -230,7 +230,7 @@ ColumnLayout {
if (network.isSecure) {
// Check if we have a saved connection profile for this network (by SSID)
const hasSavedProfile = Network.hasSavedProfile(network.ssid);
-
+
if (hasSavedProfile) {
// Try connecting with saved password - don't show dialog if it fails
// The saved password should work, but if connection fails for other reasons,
diff --git a/modules/controlcenter/network/WirelessPasswordDialog.qml b/modules/controlcenter/network/WirelessPasswordDialog.qml
index 2b33b43..8a71fa8 100644
--- a/modules/controlcenter/network/WirelessPasswordDialog.qml
+++ b/modules/controlcenter/network/WirelessPasswordDialog.qml
@@ -15,7 +15,7 @@ Item {
id: root
required property Session session
-
+
readonly property var network: {
// Prefer pendingNetwork, then active network
if (session.network.pendingNetwork) {
@@ -105,7 +105,7 @@ Item {
StyledText {
id: statusText
-
+
Layout.alignment: Qt.AlignHCenter
Layout.topMargin: Appearance.spacing.small
visible: Network.connectionStatus.length > 0 || connectButton.connecting
@@ -251,15 +251,15 @@ Item {
// Check connection status message for success indicators
const status = Network.connectionStatus;
const statusLower = status.toLowerCase();
-
+
// Check for success indicators in status message
- const hasSuccessIndicator = statusLower.includes("connection activated") ||
+ const hasSuccessIndicator = statusLower.includes("connection activated") ||
statusLower.includes("successfully") ||
statusLower.includes("connected successfully") ||
(statusLower.includes("connected") && !statusLower.includes("error") && !statusLower.includes("failed"));
// Check if we're connected to the target network (case-insensitive SSID comparison)
- const isConnected = root.network && Network.active && Network.active.ssid &&
+ const isConnected = root.network && Network.active && Network.active.ssid &&
Network.active.ssid.toLowerCase().trim() === root.network.ssid.toLowerCase().trim();
if (isConnected || hasSuccessIndicator) {