Skip to content

Commit 4710630

Browse files
committed
Move Adapter Poll Rate Warning toggle to new OSD settings pane
1 parent 2d52b02 commit 4710630

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Source/Core/DolphinQt/Settings/InterfacePane.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ void InterfacePane::CreateInGame()
203203
m_checkbox_confirm_on_stop = new ConfigBool(tr("Confirm on Stop"), Config::MAIN_CONFIRM_ON_STOP);
204204
m_checkbox_use_panic_handlers =
205205
new ConfigBool(tr("Use Panic Handlers"), Config::MAIN_USE_PANIC_HANDLERS);
206-
m_checkbox_adapter_warning =
207-
new ConfigBool(tr("Show Adapter Poll Rate Warning"), Config::MAIN_SHOW_ADAPTER_WARNING); // move after merge to OSD settings
208206
m_checkbox_show_active_title =
209207
new ConfigBool(tr("Show Active Title in Window Title"), Config::MAIN_SHOW_ACTIVE_TITLE);
210208
m_checkbox_pause_on_focus_lost =
@@ -234,7 +232,6 @@ void InterfacePane::CreateInGame()
234232
groupbox_layout->addWidget(m_checkbox_top_window);
235233
groupbox_layout->addWidget(m_checkbox_confirm_on_stop);
236234
groupbox_layout->addWidget(m_checkbox_use_panic_handlers);
237-
groupbox_layout->addWidget(m_checkbox_adapter_warning); // move after merge to OSD settings
238235
groupbox_layout->addWidget(m_checkbox_show_active_title);
239236
groupbox_layout->addWidget(m_checkbox_pause_on_focus_lost);
240237
groupbox_layout->addWidget(mouse_groupbox);
@@ -375,11 +372,6 @@ void InterfacePane::AddDescriptions()
375372
"present choices on how to proceed. With this option disabled, Dolphin will "
376373
"\"ignore\" all errors. Emulation will not be halted and you will not be notified."
377374
"<br><br><dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>");
378-
static constexpr char TR_ADAPTER_WARNING_DESCRIPTION[] =
379-
QT_TR_NOOP("This setting makes Dolphin warn and show a message when inputs are being read at a reduced rate when an adapter problem is detected."
380-
" This should only occur when your adapter returns something other than LIBUSB_SUCCESS."
381-
" Before turning this off, try reinstalling drivers and switching USB ports."
382-
"<br><br><dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>"); // move to OSD settings after merge
383375
static constexpr char TR_SHOW_ACTIVE_TITLE_DESCRIPTION[] =
384376
QT_TR_NOOP("Shows the active game title in the render window's title bar."
385377
"<br><br><dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>");
@@ -426,8 +418,6 @@ void InterfacePane::AddDescriptions()
426418
m_checkbox_confirm_on_stop->SetDescription(tr(TR_CONFIRM_ON_STOP_DESCRIPTION));
427419

428420
m_checkbox_use_panic_handlers->SetDescription(tr(TR_USE_PANIC_HANDLERS_DESCRIPTION));
429-
430-
m_checkbox_adapter_warning->SetDescription(tr(TR_ADAPTER_WARNING_DESCRIPTION)); // move to OSD settings after merge
431421

432422
m_checkbox_show_active_title->SetDescription(tr(TR_SHOW_ACTIVE_TITLE_DESCRIPTION));
433423

Source/Core/DolphinQt/Settings/InterfacePane.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class InterfacePane final : public QWidget
5353

5454
ConfigBool* m_checkbox_confirm_on_stop;
5555
ConfigBool* m_checkbox_use_panic_handlers;
56-
ConfigBool* m_checkbox_adapter_warning; // move to OSD settings after merge
5756

5857
ConfigBool* m_checkbox_show_active_title;
5958
ConfigBool* m_checkbox_pause_on_focus_lost;

Source/Core/DolphinQt/Settings/OnScreenDisplayPane.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ void OnScreenDisplayPane::CreateLayout()
3030
general_box->setLayout(general_layout);
3131

3232
m_enable_osd = new ConfigBool(tr("Show Messages"), Config::MAIN_OSD_MESSAGES);
33+
m_checkbox_adapter_warning = new ConfigBool(tr("Show Adapter Poll Rate Warning"), Config::MAIN_SHOW_ADAPTER_WARNING);
3334
m_font_size = new ConfigInteger(12, 40, Config::MAIN_OSD_FONT_SIZE);
3435

3536
general_layout->addWidget(m_enable_osd, 0, 0);
37+
general_layout->addWidget(m_checkbox_adapter_warning, 0, 1);
3638
general_layout->addWidget(new QLabel(tr("Font Size:")), 1, 0);
3739
general_layout->addWidget(m_font_size, 1, 1);
3840

@@ -139,6 +141,13 @@ void OnScreenDisplayPane::AddDescriptions()
139141
QT_TR_NOOP("Shows on-screen display messages over the render window. These messages "
140142
"disappear after several seconds."
141143
"<br><br><dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>");
144+
static constexpr char TR_ADAPTER_WARNING_DESCRIPTION[] = QT_TR_NOOP(
145+
"This setting makes Dolphin warn and show a message when inputs are being read at a reduced "
146+
"rate when an adapter problem is detected."
147+
" This should only occur when your adapter returns something other than LIBUSB_SUCCESS."
148+
" Before turning this off, try reinstalling drivers and switching USB ports."
149+
"<br><br><dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>");
150+
142151
static const char TR_OSD_FONT_SIZE_DESCRIPTION[] = QT_TR_NOOP(
143152
"Changes the font size of the On-Screen Display. Affects features such as performance "
144153
"statistics, frame counter, and netplay chat."
@@ -219,6 +228,7 @@ void OnScreenDisplayPane::AddDescriptions()
219228
"leave this unchecked.</dolphin_emphasis>");
220229

221230
m_enable_osd->SetDescription(tr(TR_ENABLE_OSD_DESCRIPTION));
231+
m_checkbox_adapter_warning->SetDescription(tr(TR_ADAPTER_WARNING_DESCRIPTION));
222232
m_font_size->SetDescription(tr(TR_OSD_FONT_SIZE_DESCRIPTION));
223233

224234
m_show_fps->SetDescription(tr(TR_SHOW_FPS_DESCRIPTION));

Source/Core/DolphinQt/Settings/OnScreenDisplayPane.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class OnScreenDisplayPane final : public QWidget
2121

2222
// General
2323
ConfigBool* m_enable_osd;
24+
ConfigBool* m_checkbox_adapter_warning;
2425
ConfigInteger* m_font_size;
2526

2627
// Performance

0 commit comments

Comments
 (0)