Skip to content

Commit 4a7773c

Browse files
committed
fix: ethernet devices incorrect end rounding
1 parent f374f72 commit 4a7773c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

modules/nexus/common/EthernetSection.qml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ ColumnLayout {
7777
}
7878

7979
Repeater {
80+
id: ethRepeater
81+
8082
model: ScriptModel {
8183
values: Nmcli.ethernetDevices.filter(d => d.state !== "unavailable")
8284
}
@@ -93,7 +95,7 @@ ColumnLayout {
9395
readonly property var details: ethRow.isConnected ? Nmcli.ethernetDeviceDetails : null
9496

9597
Layout.fillWidth: true
96-
last: index === Nmcli.ethernetDevices.length - 1
98+
last: index === ethRepeater.count - 1
9799
implicitHeight: ethLayout.implicitHeight + Tokens.padding.medium * 2
98100

99101
// Tap opens the detail page for this interface.

0 commit comments

Comments
 (0)