Merge pull request #9744 from Techjar/fix-general-pane-netplay

Qt/GeneralPane: Refresh widget state on config change
This commit is contained in:
Mai M 2021-05-23 03:19:40 -04:00 committed by GitHub
commit 4f4b3367b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ GeneralPane::GeneralPane(QWidget* parent) : QWidget(parent)
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this,
&GeneralPane::OnEmulationStateChanged);
connect(&Settings::Instance(), &Settings::ConfigChanged, this, &GeneralPane::LoadConfig);
OnEmulationStateChanged(Core::GetState());
}
@ -235,6 +236,8 @@ void GeneralPane::CreateAnalytics()
void GeneralPane::LoadConfig()
{
const QSignalBlocker blocker(this);
if (AutoUpdateChecker::SystemSupportsAutoUpdates())
{
const auto track = Settings::Instance().GetAutoUpdateTrack().toStdString();