Close ArchUpdaterPanel when clicking on the update buttons
This commit is contained in:
parent
9666ce4f5a
commit
3db3d1deb0
1 changed files with 2 additions and 0 deletions
|
|
@ -199,6 +199,7 @@ NPanel {
|
|||
enabled: !ArchUpdaterService.updateInProgress
|
||||
onClicked: {
|
||||
ArchUpdaterService.runUpdate()
|
||||
root.close()
|
||||
}
|
||||
colorBg: ArchUpdaterService.updateInProgress ? Color.mSurfaceVariant : Color.mPrimary
|
||||
colorFg: ArchUpdaterService.updateInProgress ? Color.mOnSurfaceVariant : Color.mOnPrimary
|
||||
|
|
@ -213,6 +214,7 @@ NPanel {
|
|||
onClicked: {
|
||||
if (ArchUpdaterService.selectedPackagesCount > 0) {
|
||||
ArchUpdaterService.runSelectiveUpdate()
|
||||
root.close()
|
||||
}
|
||||
}
|
||||
colorBg: ArchUpdaterService.updateInProgress ? Color.mSurfaceVariant : (ArchUpdaterService.selectedPackagesCount
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue