diff --git a/src/tribler/gui/single_application.py b/src/tribler/gui/single_application.py index d595b6e35af..94834de7194 100644 --- a/src/tribler/gui/single_application.py +++ b/src/tribler/gui/single_application.py @@ -89,11 +89,12 @@ def _on_new_connection(self): self._incoming_stream.setCodec('UTF-8') connect(self._incoming_connection.readyRead, self._on_ready_read) if self.tribler_window: - self.tribler_window.restore_from_minimised() + self.tribler_window.raise_window() def _on_ready_read(self): while True: msg = self._incoming_stream.readLine() if not msg: break + self.logger.info(f'A message received via the local socket: {msg}') self.message_received.emit(msg) diff --git a/src/tribler/gui/tribler_window.py b/src/tribler/gui/tribler_window.py index 6c312246f91..d7887c87516 100644 --- a/src/tribler/gui/tribler_window.py +++ b/src/tribler/gui/tribler_window.py @@ -1250,10 +1250,6 @@ def keyPressEvent(self, event: QKeyEvent) -> None: if event.key() == Qt.Key_Escape: self.escape_pressed.emit() - def restore_from_minimised(self): - self.setWindowState(self.windowState() & ~Qt.WindowMinimized) - self.raise_() - def handle_uri(self, uri): self.pending_uri_requests.append(uri) if self.tribler_started and not self.start_download_dialog_active: