diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index 41528718b..306c79ace 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -172,7 +172,8 @@ void GMainWindow::InitializeWidgets() {
game_list = new GameList(this);
ui.horizontalLayout->addWidget(game_list);
- multiplayer_state = new MultiplayerState(this, game_list->GetModel());
+ multiplayer_state = new MultiplayerState(this, game_list->GetModel(), ui.action_Leave_Room,
+ ui.action_Show_Room);
multiplayer_state->setVisible(false);
// Setup updater
@@ -436,11 +437,11 @@ void GMainWindow::ConnectMenuEvents() {
&MultiplayerState::OnViewLobby);
connect(ui.action_Start_Room, &QAction::triggered, multiplayer_state,
&MultiplayerState::OnCreateRoom);
- connect(ui.action_Stop_Room, &QAction::triggered, multiplayer_state,
+ connect(ui.action_Leave_Room, &QAction::triggered, multiplayer_state,
&MultiplayerState::OnCloseRoom);
connect(ui.action_Connect_To_Room, &QAction::triggered, multiplayer_state,
&MultiplayerState::OnDirectConnectToRoom);
- connect(ui.action_Chat, &QAction::triggered, multiplayer_state,
+ connect(ui.action_Show_Room, &QAction::triggered, multiplayer_state,
&MultiplayerState::OnOpenNetworkRoom);
ui.action_Fullscreen->setShortcut(GetHotkey("Main Window", "Fullscreen", this)->key());
@@ -1331,18 +1332,6 @@ void GMainWindow::SyncMenuUISettings() {
ui.action_Screen_Layout_Swap_Screens->setChecked(Settings::values.swap_screen);
}
-void GMainWindow::ChangeRoomState() {
- if (auto room = Network::GetRoom().lock()) {
- if (room->GetState() == Network::Room::State::Open) {
- ui.action_Start_Room->setDisabled(true);
- ui.action_Stop_Room->setEnabled(true);
- return;
- }
- ui.action_Start_Room->setEnabled(true);
- ui.action_Stop_Room->setDisabled(true);
- }
-}
-
#ifdef main
#undef main
#endif
diff --git a/src/citra_qt/main.h b/src/citra_qt/main.h
index a3f2371fa..f0aaf9114 100644
--- a/src/citra_qt/main.h
+++ b/src/citra_qt/main.h
@@ -12,7 +12,6 @@
#include "common/announce_multiplayer_room.h"
#include "core/core.h"
#include "core/hle/service/am/am.h"
-#include "network/network.h"
#include "ui_main.h"
class AboutDialog;
@@ -55,7 +54,6 @@ class GMainWindow : public QMainWindow {
public:
void filterBarSetChecked(bool state);
void UpdateUITheme();
- void ChangeRoomState();
GameList* game_list;
GMainWindow();
diff --git a/src/citra_qt/main.ui b/src/citra_qt/main.ui
index d7ffc6b06..86c4e46ed 100644
--- a/src/citra_qt/main.ui
+++ b/src/citra_qt/main.ui
@@ -116,10 +116,10 @@
-
-
+
+