Skip to content

Commit 9194b07

Browse files
committed
fix: taskchampion sync made persistent
--- Fixed simple typo for taskchampion shared preference settings
1 parent 7eaf8fd commit 9194b07

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: lib/app/modules/home/controllers/home_controller.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class HomeController extends GetxController {
127127

128128
Future<void> _loadTaskChampion() async {
129129
final SharedPreferences prefs = await SharedPreferences.getInstance();
130-
taskchampion.value = prefs.getBool('taskchampion') ?? false;
130+
taskchampion.value = prefs.getBool('settings_taskc') ?? false;
131131
}
132132

133133
void addListenerToScrollController() {

Diff for: lib/app/modules/settings/controllers/settings_controller.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class SettingsController extends GetxController {
181181
prefs.getBool('sync-OnTaskCreate') ?? false;
182182
delaytask.value = prefs.getBool('delaytask') ?? false;
183183
change24hr.value = prefs.getBool('24hourformate') ?? false;
184-
taskchampion.value = prefs.getBool('taskc') ?? false;
184+
taskchampion.value = prefs.getBool('settings_taskc') ?? false;
185185
initDarkMode();
186186
baseDirectory.value = await getBaseDirectory();
187187
super.onInit();

Diff for: lib/app/modules/settings/views/settings_page_taskchampion.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class SettingsPageTaskchampionTileListTileTrailing extends StatelessWidget {
2020
controller.taskchampion.value = value;
2121

2222
final SharedPreferences prefs = await SharedPreferences.getInstance();
23-
await prefs.setBool('taskc', value);
23+
await prefs.setBool('settings_taskc', value);
2424
Get.find<HomeController>().taskchampion.value = value;
2525
},
2626
),

0 commit comments

Comments
 (0)