Rework ArchUpdater logic, update UI
ArchUpdater: remove pacman poll fully and rely on paru/yay ArchUpdaterPanel: Remove scrollbar, remove UI blocking README: Add `TERMINAL` env var info (again), add DiscoCevapi as Donator
This commit is contained in:
parent
87f9afbd85
commit
f19eaf689b
4 changed files with 190 additions and 75 deletions
|
|
@ -20,7 +20,7 @@ NIconButton {
|
|||
|
||||
// Icon states
|
||||
icon: {
|
||||
if (ArchUpdaterService.busy || ArchUpdaterService.aurBusy) {
|
||||
if (ArchUpdaterService.aurBusy) {
|
||||
return "sync"
|
||||
}
|
||||
if (ArchUpdaterService.totalUpdates > 0) {
|
||||
|
|
@ -31,7 +31,7 @@ NIconButton {
|
|||
|
||||
// Tooltip with repo vs AUR breakdown and sample lists
|
||||
tooltipText: {
|
||||
if (ArchUpdaterService.busy || ArchUpdaterService.aurBusy) {
|
||||
if (ArchUpdaterService.aurBusy) {
|
||||
return "Checking for updates…"
|
||||
}
|
||||
|
||||
|
|
@ -57,12 +57,7 @@ NIconButton {
|
|||
}
|
||||
|
||||
onClicked: {
|
||||
if (ArchUpdaterService.busy || ArchUpdaterService.aurBusy) {
|
||||
ToastService.showNotice("ArchUpdater", "Still fetching updates...")
|
||||
return
|
||||
}
|
||||
|
||||
// Always allow panel to open, never block
|
||||
PanelService.getPanel("archUpdaterPanel").toggle(screen, this)
|
||||
ArchUpdaterService.doPoll()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue