mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 05:40:01 -06:00
LogWindow: don't unconfigure logger on destruction
This was causing Dolphin to always save "WriteToWindow = False". Instead of disabling logging to the window (a config value), tell LogManager that there's no window to log to (a runtime state).
This commit is contained in:
@ -129,11 +129,7 @@ CLogWindow::~CLogWindow()
|
||||
|
||||
void CLogWindow::RemoveAllListeners()
|
||||
{
|
||||
if (!m_has_listeners)
|
||||
return;
|
||||
m_has_listeners = false;
|
||||
|
||||
m_LogManager->EnableListener(LogListener::LOG_WINDOW_LISTENER, false);
|
||||
m_LogManager->RegisterListener(LogListener::LOG_WINDOW_LISTENER, nullptr);
|
||||
}
|
||||
|
||||
void CLogWindow::SaveSettings()
|
||||
|
Reference in New Issue
Block a user