From 7eb07314bc81ef36800ff8efca7e55f362e5a56a Mon Sep 17 00:00:00 2001 From: heliguy4599 Date: Tue, 12 Sep 2023 03:12:53 -0400 Subject: [PATCH] Remove user data icon Remove the user data icon from the list of flatpaks row element as it breaks HIG and isn't that useful anyways --- src/window.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/window.py b/src/window.py index f930bc6..590a26c 100644 --- a/src/window.py +++ b/src/window.py @@ -180,7 +180,6 @@ class FlattoolGuiWindow(Adw.ApplicationWindow): self.main_progress_bar.set_visible(True) self.uninstall_flatpak(self.selected_host_flatpak_indexes, should_trash) - print(self.selected_host_flatpak_indexes) dialog = Adw.MessageDialog.new(self, _("Uninstall Selected Apps?"), _("The app will be removed from your system. Optionally, you can also trash its user data.")) dialog.set_close_response("cancel") dialog.add_response("cancel", _("Cancel")) @@ -516,13 +515,6 @@ class FlattoolGuiWindow(Adw.ApplicationWindow): if (not self.show_runtimes) and "runtime" in self.host_flatpaks[index][12]: continue - if os.path.exists(f"{self.user_data_path}{app_id}"): - has_data_icon = Gtk.Image.new_from_icon_name("paper-filled-symbolic") - has_data_icon.set_tooltip_text("This App Has User Data") - has_data_icon.set_opacity(0.5) - has_data_icon.set_margin_end(10) - flatpak_row.add_suffix(has_data_icon) - trash_button = Gtk.Button(icon_name="user-trash-symbolic", valign=Gtk.Align.CENTER, tooltip_text=_("Uninstall {}").format(app_name)) trash_button.add_css_class("flat") trash_button.connect("clicked", self.uninstall_button_handler, index)