Bug 396351

Summary: "Remove" button changes to "Downloading" while a snap package is uninstalled
Product: [Applications] Discover Reporter: Patrick Silva <bugseforuns>
Component: Snap BackendAssignee: Aleix Pol <aleixpol>
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description Patrick Silva 2018-07-10 00:15:00 UTC
Open discover
Click "installed" in the sidebar
Click "remove" button of some snap package.
The button label changes to "Downloading" while the package is uninstalled.

This behavior does not occur while discover uninstalls
a package installed via neon repos or flatpak.
Comment 1 Aleix Pol 2018-07-11 21:32:24 UTC
Git commit fa66dbf50b06b75a8bf41a6683212f60010c8f71 by Aleix Pol.
Committed on 11/07/2018 at 21:28.
Pushed by apol into branch 'Plasma/5.12'.

Proper status when removing snaps

M  +1    -1    libdiscover/backends/SnapBackend/SnapTransaction.cpp

Comment 2 Patrick Silva 2018-10-26 01:24:06 UTC
This bug is back on neon dev unstable.

KDE Plasma Version: 5.14.80
Qt Version: 5.11.2
KDE Frameworks Version: 5.52.0
Comment 3 Aleix Pol 2018-11-05 14:46:46 UTC
Git commit e2c1814b06d37d5c274f6354e15f40bcba60e9b1 by Aleix Pol.
Committed on 05/11/2018 at 14:43.
Pushed by apol into branch 'Plasma/5.14'.

snap: improve transaction status

Use the task status instead of guessing what's going on, so it's true
and accurate.

M  +10   -3    libdiscover/backends/SnapBackend/SnapTransaction.cpp