Skip to content

Commit 7a8379f

Browse files
authored
fix: taskchampion sync made persistent (#457)
--- Fixed simple typo for taskchampion shared preference settings
1 parent f10edaf commit 7a8379f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/app/modules/home/controllers/home_controller.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ class HomeController extends GetxController {
128128

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

134134
void addListenerToScrollController() {

lib/app/modules/settings/controllers/settings_controller.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class SettingsController extends GetxController {
179179
prefs.getBool('sync-OnTaskCreate') ?? false;
180180
delaytask.value = prefs.getBool('delaytask') ?? false;
181181
change24hr.value = prefs.getBool('24hourformate') ?? false;
182-
taskchampion.value = prefs.getBool('taskc') ?? false;
182+
taskchampion.value = prefs.getBool('settings_taskc') ?? false;
183183
initDarkMode();
184184
baseDirectory.value = await getBaseDirectory();
185185
super.onInit();

lib/app/modules/settings/views/settings_page_taskchampion.dart

Lines changed: 1 addition & 1 deletion
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)