mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-24 09:46:42 +00:00
fix(devices): Make devices state remember current device on refresh
- Resolve https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/issues/258
This commit is contained in:
parent
76f977bc50
commit
da0b0b7670
|
@ -21,7 +21,7 @@ class ApiDevicesCubit
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> refresh() async {
|
Future<void> refresh() async {
|
||||||
emit(const ApiDevicesState([], LoadingStatus.refreshing));
|
emit(ApiDevicesState([state.thisDevice], LoadingStatus.refreshing));
|
||||||
_refetch();
|
_refetch();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue