Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus

pause sync when app is backgrounded

This commit is contained in:
Henry Hiles 2026-10-19 17:40:57 -04:00
commit 9f0b80072d
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
4 changed files with 40 additions and 1 deletions

View file

@ -95,6 +95,11 @@ class ClientController extends AsyncNotifier<int> {
}
});
if (!ref.mounted) {
GomuksDestroy(handle);
return Completer<int>().future;
}
ref.onDispose(() => GomuksDestroy(handle));
return handle;