diff --git a/src/orphans_window.py b/src/orphans_window.py index 1085952..40967f7 100644 --- a/src/orphans_window.py +++ b/src/orphans_window.py @@ -165,8 +165,13 @@ class OrphansWindow(Adw.Window): # Create the list of folders in the window def generateList(self): - self.host_flatpaks = self.my_utils.getHostFlatpaks() + + if self.host_flatpaks == [['', '']]: + self.app_window.toast_overlay.add_toast(Adw.Toast.new(_("Could not manage data"))) + self.this_just_crashes_the_window_so_it_doesnt_open() + return + self.list_of_data.remove_all() self.selected_dirs = [] self.set_title(self.window_title) diff --git a/src/window.py b/src/window.py index 5690f01..69314c8 100644 --- a/src/window.py +++ b/src/window.py @@ -522,7 +522,7 @@ class WarehouseWindow(Adw.ApplicationWindow): self.settings.bind("is-maximized", self, "maximized", Gio.SettingsBindFlags.DEFAULT) self.settings.bind("is-fullscreen", self, "fullscreened", Gio.SettingsBindFlags.DEFAULT) - if self.host_flatpaks == [['']]: + if self.host_flatpaks == [['', '']]: self.windowSetEmpty(True) return