mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-08 18:28:53 +01:00
Make code more consistent
This commit is contained in:
parent
6598515c29
commit
712ed850fe
2 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@ class AccountController {
|
||||||
_account = account;
|
_account = account;
|
||||||
_collectionsController?.dispose();
|
_collectionsController?.dispose();
|
||||||
_collectionsController = null;
|
_collectionsController = null;
|
||||||
|
_serverController?.dispose();
|
||||||
_serverController = null;
|
_serverController = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,8 @@ class ServerController {
|
||||||
required this.account,
|
required this.account,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
void dispose() {}
|
||||||
|
|
||||||
ValueStream<ServerStatus> get status {
|
ValueStream<ServerStatus> get status {
|
||||||
if (!_statusStreamContorller.hasValue) {
|
if (!_statusStreamContorller.hasValue) {
|
||||||
unawaited(_load());
|
unawaited(_load());
|
||||||
|
|
Loading…
Reference in a new issue