Merge pull request #9744 from Techjar/fix-general-pane-netplay
Qt/GeneralPane: Refresh widget state on config change
This commit is contained in:
commit
4f4b3367b5
|
@ -55,6 +55,7 @@ GeneralPane::GeneralPane(QWidget* parent) : QWidget(parent)
|
||||||
|
|
||||||
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
|
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
|
||||||
&GeneralPane::OnEmulationStateChanged);
|
&GeneralPane::OnEmulationStateChanged);
|
||||||
|
connect(&Settings::Instance(), &Settings::ConfigChanged, this, &GeneralPane::LoadConfig);
|
||||||
|
|
||||||
OnEmulationStateChanged(Core::GetState());
|
OnEmulationStateChanged(Core::GetState());
|
||||||
}
|
}
|
||||||
|
@ -235,6 +236,8 @@ void GeneralPane::CreateAnalytics()
|
||||||
|
|
||||||
void GeneralPane::LoadConfig()
|
void GeneralPane::LoadConfig()
|
||||||
{
|
{
|
||||||
|
const QSignalBlocker blocker(this);
|
||||||
|
|
||||||
if (AutoUpdateChecker::SystemSupportsAutoUpdates())
|
if (AutoUpdateChecker::SystemSupportsAutoUpdates())
|
||||||
{
|
{
|
||||||
const auto track = Settings::Instance().GetAutoUpdateTrack().toStdString();
|
const auto track = Settings::Instance().GetAutoUpdateTrack().toStdString();
|
||||||
|
|
Loading…
Reference in New Issue