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
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue