forked from Shinonome/dots-hyprland
wifi menu: fix undefined warnings
This commit is contained in:
@@ -1,13 +1,7 @@
|
|||||||
import qs.services
|
|
||||||
import qs.modules.common
|
import qs.modules.common
|
||||||
import qs.modules.common.widgets
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import QtQuick.Controls.Material
|
import QtQuick.Controls.Material
|
||||||
import QtQuick.Controls
|
import QtQuick.Controls
|
||||||
import QtQuick.Layouts
|
|
||||||
import Quickshell
|
|
||||||
import Quickshell.Widgets
|
|
||||||
import Qt5Compat.GraphicalEffects
|
|
||||||
|
|
||||||
ProgressBar {
|
ProgressBar {
|
||||||
indeterminate: true
|
indeterminate: true
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DialogListItem {
|
|||||||
id: root
|
id: root
|
||||||
required property WifiAccessPoint wifiNetwork
|
required property WifiAccessPoint wifiNetwork
|
||||||
|
|
||||||
active: (wifiNetwork?.askingPassword || wifiNetwork?.active)
|
active: (wifiNetwork?.askingPassword || wifiNetwork?.active) ?? false
|
||||||
onClicked: {
|
onClicked: {
|
||||||
Network.connectToWifiNetwork(wifiNetwork);
|
Network.connectToWifiNetwork(wifiNetwork);
|
||||||
}
|
}
|
||||||
@@ -93,7 +93,7 @@ DialogListItem {
|
|||||||
ColumnLayout { // Public wifi login page
|
ColumnLayout { // Public wifi login page
|
||||||
id: publicWifiPortal
|
id: publicWifiPortal
|
||||||
Layout.topMargin: 8
|
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 {
|
RowLayout {
|
||||||
DialogButton {
|
DialogButton {
|
||||||
|
|||||||
Reference in New Issue
Block a user