controlcenter: correcting containers (network details)

This commit is contained in:
ATMDA 2025-11-16 23:01:51 -05:00
parent 57bb5cede1
commit 9f8f8ac731
3 changed files with 37 additions and 43 deletions

View file

@ -16,6 +16,8 @@ Item {
required property Session session
readonly property var device: session.ethernet.active
anchors.fill: parent
Component.onCompleted: {
if (device && device.interface) {
Nmcli.getEthernetDeviceDetails(device.interface, () => {});
@ -30,19 +32,6 @@ Item {
}
}
StyledFlickable {
id: flickable
anchors.fill: parent
flickableDirection: Flickable.VerticalFlick
clip: true
contentHeight: layout.height
StyledScrollBar.vertical: StyledScrollBar {
flickable: flickable
}
ColumnLayout {
id: layout
@ -112,8 +101,6 @@ Item {
deviceDetails: Nmcli.ethernetDeviceDetails
}
}
}
}
}

View file

@ -463,6 +463,7 @@ Item {
opacity: 1
scale: 1
transformOrigin: Item.Center
clip: false
asynchronous: true
sourceComponent: pane ? (ethernetPane ? ethernetDetails : wirelessDetails) : settings
@ -533,20 +534,38 @@ Item {
Component {
id: ethernetDetails
StyledFlickable {
flickableDirection: Flickable.VerticalFlick
contentHeight: ethernetDetailsInner.height
EthernetDetails {
id: ethernetDetailsInner
anchors.left: parent.left
anchors.right: parent.right
session: root.session
}
}
}
Component {
id: wirelessDetails
StyledFlickable {
flickableDirection: Flickable.VerticalFlick
contentHeight: wirelessDetailsInner.height
WirelessDetails {
id: wirelessDetailsInner
anchors.left: parent.left
anchors.right: parent.right
session: root.session
}
}
}
}
}
WirelessPasswordDialog {
anchors.fill: parent

View file

@ -17,6 +17,8 @@ Item {
required property Session session
readonly property var network: session.network.active
anchors.fill: parent
Component.onCompleted: {
updateDeviceDetails();
checkSavedProfile();
@ -98,19 +100,6 @@ Item {
}
}
StyledFlickable {
id: flickable
anchors.fill: parent
flickableDirection: Flickable.VerticalFlick
clip: true
contentHeight: layout.height
StyledScrollBar.vertical: StyledScrollBar {
flickable: flickable
}
ColumnLayout {
id: layout
@ -215,7 +204,6 @@ Item {
}
}
}
}
function handleConnect(): void {
if (Nmcli.active && Nmcli.active.ssid !== root.network.ssid) {