Fix issue where canceling join left button disabled
This commit is contained in:
@@ -104,6 +104,7 @@ class VlcSyncApp(QMainWindow):
|
||||
self.room_code = ""
|
||||
self.local_file_path = None
|
||||
self.lobby_widget.clear_file()
|
||||
self.lobby_widget.reset_ui()
|
||||
|
||||
def _on_room_sync_action(self, action, position_s, req_id):
|
||||
self.sync_client.send_message({"type": "sync", "action": action, "position": position_s, "req_id": req_id})
|
||||
@@ -127,6 +128,9 @@ class VlcSyncApp(QMainWindow):
|
||||
if self.stacked_widget.currentIndex() == 1:
|
||||
self.room_widget.set_room_code_display(f"{self.room_code} (Reconnecting...)")
|
||||
self.room_widget.add_system_message("⚠️ Connection lost. Trying to reconnect...")
|
||||
else:
|
||||
self.lobby_widget.reset_ui()
|
||||
self.pending_connect_action = None
|
||||
|
||||
def on_room_error(self, msg: str):
|
||||
QMessageBox.critical(self, "Room Error", msg)
|
||||
|
||||
Reference in New Issue
Block a user