mirror of https://github.com/PCSX2/pcsx2.git
gui: Fix console log source menu item behaviour
Fixes an issue where the Enable all/Disable all/Restore Default menu items in the Console Log Sources menu do not immediately enable/disable CDVD log output.
This commit is contained in:
parent
999166fa58
commit
aff75131e4
|
@ -511,7 +511,8 @@ void ConsoleLogFrame::OnEnableAllLogging(wxCommandEvent& evt)
|
||||||
log->Enabled = true;
|
log->Enabled = true;
|
||||||
}
|
}
|
||||||
DevConWriterEnabled = true;
|
DevConWriterEnabled = true;
|
||||||
g_Conf->EmuOptions.CdvdVerboseReads = true;
|
// Safe to change - it's read only in the core thread and only affects log output.
|
||||||
|
const_cast<Pcsx2Config&>(EmuConfig).CdvdVerboseReads = g_Conf->EmuOptions.CdvdVerboseReads = true;
|
||||||
|
|
||||||
OnLoggingChanged();
|
OnLoggingChanged();
|
||||||
evt.Skip();
|
evt.Skip();
|
||||||
|
@ -526,7 +527,8 @@ void ConsoleLogFrame::OnDisableAllLogging(wxCommandEvent& evt)
|
||||||
log->Enabled = false;
|
log->Enabled = false;
|
||||||
}
|
}
|
||||||
DevConWriterEnabled = false;
|
DevConWriterEnabled = false;
|
||||||
g_Conf->EmuOptions.CdvdVerboseReads = false;
|
// Safe to change - it's read only in the core thread and only affects log output.
|
||||||
|
const_cast<Pcsx2Config&>(EmuConfig).CdvdVerboseReads = g_Conf->EmuOptions.CdvdVerboseReads = false;
|
||||||
|
|
||||||
OnLoggingChanged();
|
OnLoggingChanged();
|
||||||
evt.Skip();
|
evt.Skip();
|
||||||
|
@ -541,7 +543,8 @@ void ConsoleLogFrame::OnSetDefaultLogging(wxCommandEvent& evt)
|
||||||
log->Enabled = ConLogDefaults[i];
|
log->Enabled = ConLogDefaults[i];
|
||||||
}
|
}
|
||||||
DevConWriterEnabled = false;
|
DevConWriterEnabled = false;
|
||||||
g_Conf->EmuOptions.CdvdVerboseReads = false;
|
// Safe to change - it's read only in the core thread and only affects log output.
|
||||||
|
const_cast<Pcsx2Config&>(EmuConfig).CdvdVerboseReads = g_Conf->EmuOptions.CdvdVerboseReads = false;
|
||||||
|
|
||||||
OnLoggingChanged();
|
OnLoggingChanged();
|
||||||
evt.Skip();
|
evt.Skip();
|
||||||
|
|
Loading…
Reference in New Issue