Skip to content

Commit 8971c11

Browse files
committed
Bug fix: disable unused update track feature
1 parent cf3b05b commit 8971c11

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Source/Core/DolphinQt/Settings/GeneralPane.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ void GeneralPane::CreateLayout()
7272
// Create layout here
7373
CreateBasic();
7474

75-
if (AutoUpdateChecker::SystemSupportsAutoUpdates())
76-
CreateAutoUpdate();
75+
/* if (AutoUpdateChecker::SystemSupportsAutoUpdates())
76+
CreateAutoUpdate(); */ // disabled for P+ updater
7777

7878
CreateFallbackRegion();
7979

@@ -106,13 +106,13 @@ void GeneralPane::ConnectLayout()
106106
connect(m_checkbox_discord_presence, &QCheckBox::toggled, this, &GeneralPane::OnSaveConfig);
107107
#endif
108108

109-
if (AutoUpdateChecker::SystemSupportsAutoUpdates())
109+
/* if (AutoUpdateChecker::SystemSupportsAutoUpdates())
110110
{
111111
connect(m_combobox_update_track, &QComboBox::currentIndexChanged, this,
112112
&GeneralPane::OnSaveConfig);
113113
connect(&Settings::Instance(), &Settings::AutoUpdateTrackChanged, this,
114114
&GeneralPane::LoadConfig);
115-
}
115+
} */ // disabled for P+ updater
116116

117117
// Advanced
118118
connect(m_combobox_speedlimit, &QComboBox::currentIndexChanged, [this]() {
@@ -181,7 +181,7 @@ void GeneralPane::CreateBasic()
181181
speed_limit_layout->addRow(tr("&Speed Limit:"), m_combobox_speedlimit);
182182
}
183183

184-
void GeneralPane::CreateAutoUpdate()
184+
/* void GeneralPane::CreateAutoUpdate()
185185
{
186186
auto* auto_update_group = new QGroupBox(tr("Auto Update Settings"));
187187
auto* auto_update_group_layout = new QFormLayout;
@@ -202,7 +202,7 @@ void GeneralPane::CreateAutoUpdate()
202202
{
203203
m_combobox_update_track->addItem(option);
204204
}
205-
}
205+
} */ // disabled for P+ updater
206206

207207
void GeneralPane::CreateFallbackRegion()
208208
{
@@ -242,7 +242,7 @@ void GeneralPane::LoadConfig()
242242
{
243243
const QSignalBlocker blocker(this);
244244

245-
if (AutoUpdateChecker::SystemSupportsAutoUpdates())
245+
/* if (AutoUpdateChecker::SystemSupportsAutoUpdates())
246246
{
247247
const auto track = Settings::Instance().GetAutoUpdateTrack().toStdString();
248248
@@ -254,7 +254,7 @@ void GeneralPane::LoadConfig()
254254
SignalBlocking(m_combobox_update_track)->setCurrentIndex(AUTO_UPDATE_DEV_INDEX);
255255
else
256256
SignalBlocking(m_combobox_update_track)->setCurrentIndex(AUTO_UPDATE_BETA_INDEX);
257-
}
257+
} */ // disabled for P+ updater
258258

259259
#if defined(USE_ANALYTICS) && USE_ANALYTICS
260260
SignalBlocking(m_checkbox_enable_analytics)
@@ -332,11 +332,11 @@ void GeneralPane::OnSaveConfig()
332332
Config::ConfigChangeCallbackGuard config_guard;
333333

334334
auto& settings = SConfig::GetInstance();
335-
if (AutoUpdateChecker::SystemSupportsAutoUpdates())
335+
/* if (AutoUpdateChecker::SystemSupportsAutoUpdates())
336336
{
337337
Settings::Instance().SetAutoUpdateTrack(
338338
UpdateTrackFromIndex(m_combobox_update_track->currentIndex()));
339-
}
339+
} */ // disabled for P+ updater
340340

341341
#ifdef USE_DISCORD_PRESENCE
342342
Discord::SetDiscordPresenceEnabled(m_checkbox_discord_presence->isChecked());
@@ -454,11 +454,11 @@ void GeneralPane::AddDescriptions()
454454
m_combobox_speedlimit->SetTitle(tr("Speed Limit"));
455455
m_combobox_speedlimit->SetDescription(tr(TR_SPEEDLIMIT_DESCRIPTION));
456456

457-
if (AutoUpdateChecker::SystemSupportsAutoUpdates())
457+
/* if (AutoUpdateChecker::SystemSupportsAutoUpdates())
458458
{
459459
m_combobox_update_track->SetTitle(tr("Auto Update"));
460460
m_combobox_update_track->SetDescription(tr(TR_UPDATE_TRACK_DESCRIPTION));
461-
}
461+
} */ // disabled for P+ updater
462462

463463
m_combobox_fallback_region->SetTitle(tr("Fallback Region"));
464464
m_combobox_fallback_region->SetDescription(tr(TR_FALLBACK_REGION_DESCRIPTION));

Source/Core/DolphinQt/Settings/GeneralPane.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class GeneralPane final : public QWidget
3232
void CreateLayout();
3333
void ConnectLayout();
3434
void CreateBasic();
35-
void CreateAutoUpdate();
35+
// void CreateAutoUpdate(); // disabled, as we do not have separate update tracks for P+
3636
void CreateFallbackRegion();
3737
void AddDescriptions();
3838

@@ -43,7 +43,7 @@ class GeneralPane final : public QWidget
4343
// Widgets
4444
QVBoxLayout* m_main_layout;
4545
ToolTipComboBox* m_combobox_speedlimit;
46-
ToolTipComboBox* m_combobox_update_track;
46+
// ToolTipComboBox* m_combobox_update_track;
4747
ToolTipComboBox* m_combobox_fallback_region;
4848
ConfigBool* m_checkbox_dualcore;
4949
ConfigBool* m_checkbox_cheats;

0 commit comments

Comments
 (0)