SessionMenuTab: disabling entries works again (fixes #769)

This commit is contained in:
Ly-sec
2025-11-16 10:20:43 +01:00
parent a8787aa241
commit 098e7f5645
2 changed files with 10 additions and 3 deletions
@@ -351,7 +351,7 @@ ColumnLayout {
"enabled": !modelData.enabled
})
entriesModel = newModel
root.saveEntries()
delegateItem.saveEntriesFunc()
}
}
}
+9 -2
View File
@@ -1199,7 +1199,11 @@ SmartPanel {
RowLayout {
Layout.fillWidth: true
visible: !loading && errorMessage === "" && typeof WallhavenService !== "undefined"
spacing: Style.marginM
spacing: Style.marginS
Item {
Layout.fillWidth: true
}
NIconButton {
icon: "chevron-left"
@@ -1210,7 +1214,6 @@ SmartPanel {
NText {
text: I18n.tr("wallpaper.wallhaven.page").replace("{current}", WallhavenService.currentPage).replace("{total}", WallhavenService.lastPage)
color: Color.mOnSurface
Layout.fillWidth: true
horizontalAlignment: Text.AlignHCenter
}
@@ -1219,6 +1222,10 @@ SmartPanel {
enabled: WallhavenService.currentPage < WallhavenService.lastPage && !WallhavenService.fetching
onClicked: WallhavenService.nextPage()
}
Item {
Layout.fillWidth: true
}
}
}