From 53b03af3e1195cbc58a786e918e050df4d0f316d Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 30 Aug 2025 22:14:32 +0200 Subject: [PATCH] wifi menu: fix undefined warnings --- .../common/widgets/StyledIndeterminateProgressBar.qml | 6 ------ .../modules/sidebarRight/wifiNetworks/WifiNetworkItem.qml | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.config/quickshell/ii/modules/common/widgets/StyledIndeterminateProgressBar.qml b/.config/quickshell/ii/modules/common/widgets/StyledIndeterminateProgressBar.qml index 5dc1ef9cc..030d3fc3d 100644 --- a/.config/quickshell/ii/modules/common/widgets/StyledIndeterminateProgressBar.qml +++ b/.config/quickshell/ii/modules/common/widgets/StyledIndeterminateProgressBar.qml @@ -1,13 +1,7 @@ -import qs.services import qs.modules.common -import qs.modules.common.widgets import QtQuick import QtQuick.Controls.Material import QtQuick.Controls -import QtQuick.Layouts -import Quickshell -import Quickshell.Widgets -import Qt5Compat.GraphicalEffects ProgressBar { indeterminate: true diff --git a/.config/quickshell/ii/modules/sidebarRight/wifiNetworks/WifiNetworkItem.qml b/.config/quickshell/ii/modules/sidebarRight/wifiNetworks/WifiNetworkItem.qml index ac178fbe2..42d9e9dd5 100644 --- a/.config/quickshell/ii/modules/sidebarRight/wifiNetworks/WifiNetworkItem.qml +++ b/.config/quickshell/ii/modules/sidebarRight/wifiNetworks/WifiNetworkItem.qml @@ -10,7 +10,7 @@ DialogListItem { id: root required property WifiAccessPoint wifiNetwork - active: (wifiNetwork?.askingPassword || wifiNetwork?.active) + active: (wifiNetwork?.askingPassword || wifiNetwork?.active) ?? false onClicked: { Network.connectToWifiNetwork(wifiNetwork); } @@ -93,7 +93,7 @@ DialogListItem { ColumnLayout { // Public wifi login page id: publicWifiPortal Layout.topMargin: 8 - visible: root.wifiNetwork?.active && (root.wifiNetwork?.security ?? "").trim().length === 0 + visible: (root.wifiNetwork?.active && (root.wifiNetwork?.security ?? "").trim().length === 0) ?? false RowLayout { DialogButton {