Refactoring & comments

This commit is contained in:
2025-06-08 19:24:01 +02:00
parent 845528e362
commit 28aa3261fb
8 changed files with 49 additions and 38 deletions

View File

@@ -48,8 +48,8 @@ class ConfigService {
/// Resets the configuration to default values.
static Future<void> resetConfig() async {
globals.pointLimit = _defaultPointLimit;
globals.caboPenalty = _defaultCaboPenalty;
Globals.pointLimit = _defaultPointLimit;
Globals.caboPenalty = _defaultCaboPenalty;
final prefs = await SharedPreferences.getInstance();
await prefs.setInt(_keyPointLimit, _defaultPointLimit);
await prefs.setInt(_keyCaboPenalty, _defaultCaboPenalty);