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:
Aneesh Maganti
2025-02-10 15:26:07 -05:00
committed by Admiral H. Curtiss
parent a9ebedbf7d
commit 276f043db8
2 changed files with 29 additions and 0 deletions

View File

@ -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;