Refactor preferences
This commit is contained in:
@@ -58,7 +58,7 @@ class AddProfile extends _$AddProfile with AppLogger {
|
||||
() async {
|
||||
final activeProfile = await ref.read(activeProfileProvider.future);
|
||||
final markAsActive =
|
||||
activeProfile == null || ref.read(markNewProfileActiveProvider);
|
||||
activeProfile == null || ref.read(Preferences.markNewProfileActive);
|
||||
final TaskEither<ProfileFailure, Unit> task;
|
||||
if (LinkParser.parse(rawInput) case (final link)?) {
|
||||
loggy.debug("adding profile, url: [${link.url}]");
|
||||
|
||||
@@ -36,7 +36,7 @@ class ForegroundProfilesUpdateNotifier
|
||||
_scheduler = null;
|
||||
});
|
||||
|
||||
if (ref.watch(introCompletedProvider)) {
|
||||
if (ref.watch(Preferences.introCompleted)) {
|
||||
loggy.debug("intro done, starting");
|
||||
_scheduler?.start();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user