From 88ff7c4dda13799b4bc200f0bb6c3cd59739e3b9 Mon Sep 17 00:00:00 2001 From: jeffser Date: Mon, 22 Jul 2024 22:26:39 -0600 Subject: [PATCH] Better progressbar --- src/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.py b/src/window.py index 78fcfb5..6b1870b 100644 --- a/src/window.py +++ b/src/window.py @@ -963,7 +963,7 @@ Generate a title following these rules: def pull_model_update(self, data, model_name): if model_name in list(self.pulling_models.keys()): if 'completed' in data and 'total' in data: - GLib.idle_add(self.pulling_models[model_name]['row'].set_subtitle, '{}%\t{}'.format(round(data['completed'] / data['total'] * 100, 2), data['status'].capitalize())) + GLib.idle_add(self.pulling_models[model_name]['row'].set_subtitle, '{}%'.format(round(data['completed'] / data['total'] * 100, 2))) GLib.idle_add(self.pulling_models[model_name]['progress_bar'].set_fraction, (data['completed'] / data['total'])) else: GLib.idle_add(self.pulling_models[model_name]['row'].set_subtitle, '{}'.format(data['status'].capitalize()))