summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2024-04-25 20:32:16 -0700
committerDentomologist <dentomologist@gmail.com>2024-07-29 14:00:46 -0700
commitfa4803f38aba99e2e24cc7e2c809b95c1180cb9b (patch)
tree347e0a5b8c9249b3748f41f9b36d76d7b0234b18 /Source
parent427b85f2a15522dba811e3d151d38da4c3d22bf8 (diff)
GeneralPane: Add BalloonTip to auto update combobox
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DolphinQt/Settings/GeneralPane.cpp27
-rw-r--r--Source/Core/DolphinQt/Settings/GeneralPane.h2
2 files changed, 27 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Settings/GeneralPane.cpp b/Source/Core/DolphinQt/Settings/GeneralPane.cpp
index 6740bfbd9d..e8bb70afa7 100644
--- a/Source/Core/DolphinQt/Settings/GeneralPane.cpp
+++ b/Source/Core/DolphinQt/Settings/GeneralPane.cpp
@@ -192,7 +192,7 @@ void GeneralPane::CreateAutoUpdate()
auto_update_group_layout->setFormAlignment(Qt::AlignLeft | Qt::AlignTop);
auto_update_group_layout->setFieldGrowthPolicy(QFormLayout::AllNonFixedFieldsGrow);
- m_combobox_update_track = new QComboBox(this);
+ m_combobox_update_track = new ToolTipComboBox();
auto_update_group_layout->addRow(tr("&Auto Update:"), m_combobox_update_track);
@@ -410,6 +410,25 @@ void GeneralPane::AddDescriptions()
"<br><br>Higher speeds are proportionally more costly to emulate. Depending on the title, "
"your settings, and your host hardware, some of these values may not be sustainable."
"<br><br><dolphin_emphasis>If unsure, select 100%.</dolphin_emphasis>");
+ static constexpr char TR_UPDATE_TRACK_DESCRIPTION[] = QT_TR_NOOP(
+ "Selects which update track Dolphin uses when checking for updates at startup. If a new "
+ "update is available, Dolphin will show a list of changes made since your current version "
+ "and ask you if you want to update."
+ "<br><br>The Dev track has the latest version of Dolphin which often updates multiple times "
+ "per day. Select this track if you want the newest features and fixes."
+ "<br><br>The Releases track has an update every few months. Some reasons you might prefer to "
+ "use this track:"
+ "<br>- You prefer using versions that have had additional testing."
+ "<br>- NetPlay requires players to have the same Dolphin version, and the latest Release "
+ "version will have the most players to match with."
+ "<br>- You frequently use Dolphin's savestate system, which doesn't guarantee backward "
+ "compatibility of savestates between Dolphin versions. If this applies to you, make sure you "
+ "make an in-game save before updating (i.e. save your game in the same way you would on a "
+ "physical GameCube or Wii), then load the in-game save after updating Dolphin and before "
+ "making any new savestates."
+ "<br><br>Selecting \"Don't Update\" will prevent Dolphin from automatically checking for "
+ "updates."
+ "<br><br><dolphin_emphasis>If unsure, select Releases.</dolphin_emphasis>");
m_checkbox_dualcore->SetDescription(tr(TR_DUALCORE_DESCRIPTION));
@@ -425,4 +444,10 @@ void GeneralPane::AddDescriptions()
m_combobox_speedlimit->SetTitle(tr("Speed Limit"));
m_combobox_speedlimit->SetDescription(tr(TR_SPEEDLIMIT_DESCRIPTION));
+
+ if (AutoUpdateChecker::SystemSupportsAutoUpdates())
+ {
+ m_combobox_update_track->SetTitle(tr("Auto Update"));
+ m_combobox_update_track->SetDescription(tr(TR_UPDATE_TRACK_DESCRIPTION));
+ }
}
diff --git a/Source/Core/DolphinQt/Settings/GeneralPane.h b/Source/Core/DolphinQt/Settings/GeneralPane.h
index 77f4303e55..facc651648 100644
--- a/Source/Core/DolphinQt/Settings/GeneralPane.h
+++ b/Source/Core/DolphinQt/Settings/GeneralPane.h
@@ -42,7 +42,7 @@ private:
// Widgets
QVBoxLayout* m_main_layout;
ToolTipComboBox* m_combobox_speedlimit;
- QComboBox* m_combobox_update_track;
+ ToolTipComboBox* m_combobox_update_track;
QComboBox* m_combobox_fallback_region;
ConfigBool* m_checkbox_dualcore;
ConfigBool* m_checkbox_cheats;