Skip to content

Commit 0b5e5f2

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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() {

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)