fix (dashboard): Clean up names.

This commit is contained in:
2023-08-18 23:47:49 +03:00
parent a1072bb8f6
commit 8af1e73c17
11 changed files with 43 additions and 1 deletions

View File

@@ -84,10 +84,12 @@ class TimerOptions(SettingGroup):
'timerset:inactivity_threshold|desc',
"How many timer cycles before kicking inactive members."
)
_model = TimerData.Timer
_column = TimerData.Timer.inactivity_threshold.name
_min = 0
_max = 64
@property
def input_formatted(self):
return str(self._data) if self._data is not None else ''

View File

@@ -80,5 +80,9 @@ class TimerDashboard(DashboardSection):
'dash:pomodoro|title',
"Pomodoro Configuration ({commands[configure pomodoro]})"
)
_option_name = _p(
"dash:stats|dropdown|placeholder",
"Pomodoro Timer Panel"
)
configui = TimerConfigUI
setting_classes = TimerConfigUI.setting_classes