mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00: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:
parent
ff83b13344
commit
06f1761f9f
2 changed files with 1 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue