mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Qt: Disable controller configuration while NetPlay is running
Doing pretty much anything in the controller config breaks NetPlay (desync and/or deadlock), as saving the settings reconfigures controller interfaces, which NetPlay doesn't expect.
This commit is contained in:
@ -8,6 +8,7 @@
|
||||
#include <QIcon>
|
||||
|
||||
#include "Core/Core.h"
|
||||
#include "Core/NetPlayProto.h"
|
||||
#include "DolphinQt/Host.h"
|
||||
#include "DolphinQt/Resources.h"
|
||||
#include "DolphinQt/Settings.h"
|
||||
@ -54,6 +55,7 @@ void ToolBar::OnEmulationStateChanged(Core::State state)
|
||||
m_stop_action->setEnabled(running);
|
||||
m_fullscreen_action->setEnabled(running);
|
||||
m_screenshot_action->setEnabled(running);
|
||||
m_controllers_action->setEnabled(NetPlay::IsNetPlayRunning() ? !running : true);
|
||||
|
||||
bool playing = running && state != Core::State::Paused;
|
||||
UpdatePausePlayButtonState(playing);
|
||||
|
Reference in New Issue
Block a user