Skip to content

Commit

Permalink
Moved my ToDo file in here
Browse files Browse the repository at this point in the history
  • Loading branch information
heliguy4599 committed Sep 12, 2023
1 parent a203aac commit 9f6701d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Flattool ToDo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- Make install use pkexec on a second try

After 1.0
- Separate Orphans Window
- Export in batch mode
- Copy drop down in batch mode
6 changes: 5 additions & 1 deletion src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ def uninstall_flatpak_callback(self, _a, _b):
self.refresh_list_of_flatpaks(_a, False)
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")))
else:
self.toast_overlay.add_toast(Adw.Toast.new(_("Could not uninstall some apps")))

def uninstall_flatpak_thread(self, ref_arr, id_arr, should_trash):
failures = []
Expand All @@ -138,7 +142,7 @@ def uninstall_flatpak_thread(self, ref_arr, id_arr, should_trash):
try:
subprocess.run(pk_command, capture_output=False, check=True)
except subprocess.CalledProcessError:
self.toast_overlay.add_toast(Adw.Toast.new(_("Could not uninstall some apps")))
self.uninstall_success = False

if should_trash:
for i in range(len(id_arr)):
Expand Down

0 comments on commit 9f6701d

Please sign in to comment.