From a296e38fa13eef108966dce0af9203d10146e6a4 Mon Sep 17 00:00:00 2001 From: jeffser Date: Mon, 1 Jul 2024 20:19:14 -0600 Subject: [PATCH] Tweaks to stop downloading dialog --- src/dialogs.py | 4 ++-- src/window.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dialogs.py b/src/dialogs.py index 898c34e..ea572e6 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -114,8 +114,8 @@ def stop_pull_model_response(self, dialog, task, model_name): def stop_pull_model(self, model_name): #self.pulling_model_list_box.unselect_all() dialog = Adw.AlertDialog( - heading=_("Stop Model"), - body=_("Are you sure you want to stop pulling '{}'?").format(model_name), + heading=_("Stop Download"), + body=_("Are you sure you want to stop pulling '{} ({})'?").format(model_name.split(":")[0].capitalize(), model_name.split(":")[1]), close_response="cancel" ) dialog.add_response("cancel", _("Cancel")) diff --git a/src/window.py b/src/window.py index 03a5285..b18c50f 100644 --- a/src/window.py +++ b/src/window.py @@ -975,7 +975,7 @@ Generate a title following these rules: vexpand = False, valign = 3, css_classes = ["error", "circular"], - tooltip_text = _("Stop Pulling '{}'").format(model.capitalize()) + tooltip_text = _("Stop Pulling '{} ({})'").format(model.split(':')[0].capitalize(), model.split(':')[1]) ) button.connect("clicked", lambda button, model_name=model : dialogs.stop_pull_model(self, model_name)) model_row.add_suffix(button)