From 4a83a7552dfca54dcbdeddbef399f4c4599fbab0 Mon Sep 17 00:00:00 2001 From: heliguy4599 Date: Mon, 18 Sep 2023 15:24:17 -0400 Subject: [PATCH] Fix uninstall response Make it so that outside of batch mode the uninstalled toast does not mention anything about selected apps --- src/window.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/window.py b/src/window.py index 801238d..db28442 100644 --- a/src/window.py +++ b/src/window.py @@ -124,7 +124,10 @@ class WarehouseWindow(Adw.ApplicationWindow): self.main_toolbar_view.set_sensitive(True) self.disconnect(self.no_close) if self.uninstall_success: - self.toast_overlay.add_toast(Adw.Toast.new(_("Uninstalled selected apps"))) + if self.in_batch_mode: + self.toast_overlay.add_toast(Adw.Toast.new(_("Uninstalled selected apps"))) + else: + self.toast_overlay.add_toast(Adw.Toast.new(_("Uninstalled app"))) else: self.toast_overlay.add_toast(Adw.Toast.new(_("Could not uninstall some apps")))