mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
DolphinQt: Create toggle for enabling/disabling time tracking
Introduce a new "Enable Time Tracking" checkbox in the InterfacePane UI. The checkbox is dynamically enabled or disabled based on the emulation state, preventing changes while emulation is active.
This commit is contained in:
parent
a9ebedbf7d
commit
276f043db8
2 changed files with 29 additions and 0 deletions
|
@ -13,6 +13,11 @@ class QVBoxLayout;
|
|||
class ToolTipCheckBox;
|
||||
class ToolTipComboBox;
|
||||
|
||||
namespace Core
|
||||
{
|
||||
enum class State;
|
||||
}
|
||||
|
||||
class InterfacePane final : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -30,6 +35,8 @@ private:
|
|||
void OnUserStyleChanged();
|
||||
void OnLanguageChanged();
|
||||
|
||||
void OnEmulationStateChanged(Core::State state);
|
||||
|
||||
QVBoxLayout* m_main_layout;
|
||||
ConfigStringChoice* m_combobox_language;
|
||||
|
||||
|
@ -42,6 +49,7 @@ private:
|
|||
ConfigBool* m_checkbox_focused_hotkeys;
|
||||
ConfigBool* m_checkbox_use_covers;
|
||||
ConfigBool* m_checkbox_disable_screensaver;
|
||||
ConfigBool* m_checkbox_time_tracking;
|
||||
|
||||
ConfigBool* m_checkbox_confirm_on_stop;
|
||||
ConfigBool* m_checkbox_use_panic_handlers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue