mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Fix ArchUpdater NCheckbox binding
ArchUpdater: Create proper binding, make selective update more robust
This commit is contained in:
@@ -112,7 +112,11 @@ NPanel {
|
||||
label: ""
|
||||
description: ""
|
||||
checked: ArchUpdaterService.isPackageSelected(modelData.name)
|
||||
onToggled: ArchUpdaterService.togglePackageSelection(modelData.name)
|
||||
onToggled: function (checked) {
|
||||
ArchUpdaterService.togglePackageSelection(modelData.name)
|
||||
// Force refresh of the checked property
|
||||
checkbox.checked = ArchUpdaterService.isPackageSelected(modelData.name)
|
||||
}
|
||||
activeColor: (modelData.source === "aur") ? Color.mSecondary : Color.mPrimary
|
||||
activeOnColor: (modelData.source === "aur") ? Color.mOnSecondary : Color.mOnPrimary
|
||||
Layout.fillWidth: false
|
||||
|
||||
@@ -303,11 +303,11 @@ ColumnLayout {
|
||||
}
|
||||
}
|
||||
|
||||
// Temperature
|
||||
// Temperature
|
||||
ColumnLayout {
|
||||
spacing: Style.marginXS * scaling
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
|
||||
|
||||
NLabel {
|
||||
label: "Color temperature"
|
||||
description: "Select two temperatures in Kelvin"
|
||||
@@ -317,7 +317,7 @@ ColumnLayout {
|
||||
visible: Settings.data.nightLight.enabled
|
||||
spacing: Style.marginM * scaling
|
||||
Layout.fillWidth: false
|
||||
Layout.fillHeight: true
|
||||
Layout.fillHeight: true
|
||||
Layout.alignment: Qt.AlignVCenter
|
||||
|
||||
NText {
|
||||
|
||||
Reference in New Issue
Block a user