From 5c52cb1e316a8c45458670ff2c70a90e978b03de Mon Sep 17 00:00:00 2001 From: Alexander Kozlovsky Date: Wed, 22 Nov 2023 09:45:42 +0100 Subject: [PATCH] Fix Tribler UI starting when Core re-connects --- src/tribler/gui/tribler_window.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tribler/gui/tribler_window.py b/src/tribler/gui/tribler_window.py index f7b0d51a765..0a914e53cb6 100644 --- a/src/tribler/gui/tribler_window.py +++ b/src/tribler/gui/tribler_window.py @@ -545,7 +545,6 @@ def tray_show_message(self, title, message): def on_core_connected(self, version): if self.core_connected: self._logger.warning("Received duplicate Tribler Core connected event") - return self._logger.info("Core connected") self.core_connected = True @@ -559,6 +558,10 @@ def on_receive_settings(self, settings): self.start_ui() def start_ui(self): + if self.ui_started: + self._logger.info("UI already started") + return + self.top_menu_button.setHidden(False) self.left_menu.setHidden(False) # self.token_balance_widget.setHidden(False) # restore it after the token balance calculation is fixed