Bug 407466

Summary: Impossible to abort update process on Arch Linux
Product: [Applications] Discover Reporter: Patrick Silva <bugseforuns>
Component: Updates (interactive)Assignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version: 5.16.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In: 5.17.0
Attachments: screen recording

Description Patrick Silva 2019-05-12 17:31:41 UTC
Created attachment 120016 [details]
screen recording

SUMMARY
Watch the screen recording please.
Nothing happens when I click on the buttons to cancel update process on Arch Linux.

STEPS TO REPRODUCE
1. open discover when updates from Arch repos are available
2. click "Update all" button
3. click "Cancel" button while Discover downloads the updates

EXPECTED RESULT
update process is canceled

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.57.0
Qt Version: 5.13.0 beta3
Comment 1 Nate Graham 2019-05-13 04:20:56 UTC
Can confirm. if it's cancelable, the button should work. If it's not, the button should be disabled.
Comment 2 Aleix Pol 2019-10-09 15:00:09 UTC
Git commit 234f063d99859cb1b6ae569b045c8d63e34d277d by Aleix Pol.
Committed on 09/10/2019 at 14:59.
Pushed by apol into branch 'Plasma/5.17'.

updates: improve cancellability calculation

If the state changes so no backends can cancel, we can disable the
button.

M  +1    -0    libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp
M  +1    -1    libdiscover/resources/ResourcesUpdatesModel.cpp

https://commits.kde.org/discover/234f063d99859cb1b6ae569b045c8d63e34d277d