Use icons when pausing or cancelling tasks.

This avoids shifting the list left and then right for single tasks. It
also gives more feedback that the task is being paused or cancelled.
This commit is contained in:
auouymous 2021-09-14 02:40:17 -06:00
parent ed5d18e1b0
commit 65aa1c679a
1 changed files with 2 additions and 0 deletions

View File

@ -67,7 +67,9 @@ class DownloadStatusModel(Gtk.ListStore):
self._status_ids[download.DownloadTask.DOWNLOADING] = 'go-down'
self._status_ids[download.DownloadTask.DONE] = Gtk.STOCK_APPLY
self._status_ids[download.DownloadTask.FAILED] = 'dialog-error'
self._status_ids[download.DownloadTask.CANCELLING] = 'media-playback-stop'
self._status_ids[download.DownloadTask.CANCELLED] = 'media-playback-stop'
self._status_ids[download.DownloadTask.PAUSING] = 'media-playback-pause'
self._status_ids[download.DownloadTask.PAUSED] = 'media-playback-pause'
def _format_message(self, episode, message, podcast):