mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 17:25:32 +00:00
Add keepAlive calls in Synching and SyncServer build methods
This commit is contained in:
parent
c649525145
commit
d35192629b
2 changed files with 4 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ part 'sync_providers.g.dart';
|
|||
class Synching extends _$Synching {
|
||||
@override
|
||||
SyncPreference build({required int? syncId}) {
|
||||
ref.keepAlive();
|
||||
return isar.syncPreferences.getSync(syncId!) ?? SyncPreference(syncId: 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,9 @@ class SyncServer extends _$SyncServer {
|
|||
final String _syncSettingsUrl = '/sync/settings';
|
||||
|
||||
@override
|
||||
void build({required int syncId}) {}
|
||||
void build({required int syncId}) {
|
||||
ref.keepAlive();
|
||||
}
|
||||
|
||||
Future<(bool, String)> login(
|
||||
AppLocalizations l10n,
|
||||
|
|
|
|||
Loading…
Reference in a new issue