More fixes for Network, NotificationHistory etc

This commit is contained in:
Ly-sec 2025-08-16 14:25:54 +02:00
parent 3e001f1282
commit 56ad08816e
6 changed files with 52 additions and 20 deletions

View file

@ -13,6 +13,7 @@ NIconButton {
readonly property bool wifiEnabled: Settings.data.network.wifiEnabled
sizeMultiplier: 0.8
showBorder: false
visible: wifiEnabled
icon: {
let connected = false
let signalStrength = 0
@ -23,7 +24,7 @@ NIconButton {
break
}
}
return connected ? NetworkService.signalIcon(signalStrength) : "wifi_off"
return connected ? NetworkService.signalIcon(signalStrength) : "wifi"
}
tooltipText: "WiFi Networks"
onClicked: {

View file

@ -87,7 +87,7 @@ NLoader {
border.color: Colors.mOutlineVariant
border.width: Math.max(1, Style.borderThin * scaling)
width: 340 * scaling
height: 320 * scaling
height: 500 * scaling
anchors.top: parent.top
anchors.right: parent.right
anchors.topMargin: Style.marginTiny * scaling
@ -145,19 +145,7 @@ NLoader {
Layout.fillWidth: true
}
NToggle {
baseSize: Style.baseWidgetSize * 0.75
checked: Settings.data.network.wifiEnabled
onToggled: checked => {
Settings.data.network.wifiEnabled = checked
NetworkService.setWifiEnabled(checked)
// If enabling WiFi while menu is open, refresh after a delay
if (checked) {
wifiEnableRefreshTimer.start()
}
}
}
NIconButton {
icon: "refresh"
@ -245,7 +233,7 @@ NLoader {
clip: true
delegate: Item {
width: parent.width
width: parent ? parent.width : 0
height: modelData.ssid === passwordPromptSsid
&& showPasswordPrompt ? 108 * scaling : Style.baseWidgetSize * 1.5 * scaling