Skip to content

Commit

Permalink
Fix Tribler UI starting when Core re-connects
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlovsky committed Nov 23, 2023
1 parent e6d2c58 commit 5c52cb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tribler/gui/tribler_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5c52cb1

Please sign in to comment.