From 2c82bff20482222950e875a320a4da4b3e1818cf Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sun, 30 Nov 2025 13:14:38 +0500 Subject: [PATCH] fix(main_window): remove redundant loading status and improve loading flow Signed-off-by: Boris Yumankulov --- portprotonqt/main_window.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/portprotonqt/main_window.py b/portprotonqt/main_window.py index 70e8672..ac51736 100644 --- a/portprotonqt/main_window.py +++ b/portprotonqt/main_window.py @@ -780,11 +780,10 @@ class MainWindow(QMainWindow): self.pending_games = [] self.games = [] - # Show initial progress bar and status message immediately + # Show initial progress bar immediately self.progress_bar.setRange(0, 100) # Set to determinate range self.progress_bar.setValue(0) self.progress_bar.setVisible(True) - self.update_status_message.emit(_("Loading games..."), 0) # Process events to keep UI responsive QApplication.processEvents() @@ -899,8 +898,8 @@ class MainWindow(QMainWindow): self.update_status_message.emit ) - # Run loading with minimal delay to allow UI to be responsive - QTimer.singleShot(100, start_loading) # Reduced to 100ms + # Run loading immediately to show status without delay + start_loading() def _load_steam_games_async(self, callback: Callable[[list[tuple]], None]): steam_games = []