Remove redundant timeout removal when creating progress dialog.

It is somehow possible for source_id to be zero, causing a
g_source_remove assertion warning.
This commit is contained in:
auouymous 2022-09-16 05:28:14 -06:00
parent 5c01b6b036
commit fe83a92286
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ class ProgressIndicator(object):
self.dialog.show_all()
self._update_gui()
GLib.source_remove(self.source_id)
# previous self.source_id timeout is removed when this returns False
self.source_id = GLib.timeout_add(self.INTERVAL, self._update_gui)
return False