Close ArchUpdaterPanel when clicking on the update buttons

This commit is contained in:
Ly-sec 2025-08-24 16:56:09 +02:00
parent 9666ce4f5a
commit 3db3d1deb0

View file

@ -199,6 +199,7 @@ NPanel {
enabled: !ArchUpdaterService.updateInProgress enabled: !ArchUpdaterService.updateInProgress
onClicked: { onClicked: {
ArchUpdaterService.runUpdate() ArchUpdaterService.runUpdate()
root.close()
} }
colorBg: ArchUpdaterService.updateInProgress ? Color.mSurfaceVariant : Color.mPrimary colorBg: ArchUpdaterService.updateInProgress ? Color.mSurfaceVariant : Color.mPrimary
colorFg: ArchUpdaterService.updateInProgress ? Color.mOnSurfaceVariant : Color.mOnPrimary colorFg: ArchUpdaterService.updateInProgress ? Color.mOnSurfaceVariant : Color.mOnPrimary
@ -213,6 +214,7 @@ NPanel {
onClicked: { onClicked: {
if (ArchUpdaterService.selectedPackagesCount > 0) { if (ArchUpdaterService.selectedPackagesCount > 0) {
ArchUpdaterService.runSelectiveUpdate() ArchUpdaterService.runSelectiveUpdate()
root.close()
} }
} }
colorBg: ArchUpdaterService.updateInProgress ? Color.mSurfaceVariant : (ArchUpdaterService.selectedPackagesCount colorBg: ArchUpdaterService.updateInProgress ? Color.mSurfaceVariant : (ArchUpdaterService.selectedPackagesCount