From 1686b1e9aa6dd19ae0f56b493dce14a0d907e4a8 Mon Sep 17 00:00:00 2001 From: ericbsd Date: Tue, 13 Jan 2026 21:16:43 -0400 Subject: [PATCH] Replaced `hide()` with `destroy()` Updated conditionals for readability and bumped a version to 6.8 in setup.py. --- setup.py | 5 ++--- update_station/frontend.py | 9 ++++----- update_station/notification.py | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index c7aff9e..d53e4dc 100755 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ # to update i18n .mo files (and merge .pot file into .po files) run on Linux: # python setup.py build_i18n -m'' -__VERSION__ = '6.3' +__VERSION__ = '6.8' PROGRAM_VERSION = __VERSION__ prefix = sys.prefix @@ -21,8 +21,7 @@ def data_file_list(install_base, source_base): data = [] for root, subFolders, files in os.walk(source_base): file_list = [] - for f in files: - file_list.append(os.path.join(root, f)) + file_list.extend(os.path.join(root, f) for f in files) data.append((root.replace(source_base, install_base), file_list)) return data diff --git a/update_station/frontend.py b/update_station/frontend.py index 00b8fc1..0589e16 100644 --- a/update_station/frontend.py +++ b/update_station/frontend.py @@ -48,13 +48,13 @@ def delete_event(self, widget: Gtk.Widget) -> None: Function that handles the delete event when the window is closed. :param widget: The widget that triggered the delete event. """ - if Data.close_session is True: + if Data.close_session: if updating(): unlock_update_station() Gtk.main_quit() else: self.window.destroy() - if Data.update_started is False: + if not Data.update_started: Data.stop_pkg_refreshing = False if updating(): unlock_update_station() @@ -67,7 +67,7 @@ def start_update(self, widget): """ Data.update_started = True InstallUpdate() - self.window.hide() + self.window.destroy() def if_backup(self, widget): """ @@ -283,7 +283,6 @@ def should_destroy_be(cls, be_line: str, today_str: str) -> bool: 'NR' not in active_status ) - def read_output(self, progress): """ Function that reads the output of the update to update the progress bar. @@ -586,4 +585,4 @@ def stop_tread(self, start_window: object): :param start_window: The start window object. """ start_window() - self.win.hide() + self.win.destroy() diff --git a/update_station/notification.py b/update_station/notification.py index 13fff49..b82516c 100644 --- a/update_station/notification.py +++ b/update_station/notification.py @@ -161,4 +161,4 @@ def on_clicked(self, widget): else: Data.major_upgrade = False Data.do_not_upgrade = True - self.hide() \ No newline at end of file + self.destroy()