fix & opt

- fix duplicated ssh connecting
- opt backup page ui
This commit is contained in:
Junyuan Feng
2022-05-23 10:35:42 +08:00
parent 0fdc1b784b
commit 330ff9a621
10 changed files with 57 additions and 33 deletions

View File

@@ -165,8 +165,7 @@ class ServerProvider extends BusyProvider {
Future<void> _getData(ServerPrivateInfo spi) async {
final idx = _servers.indexWhere((element) => element.info == spi);
final state = _servers[idx].connectionState;
if (_servers[idx].client == null ||
state == ServerConnectionState.failed ||
if (state == ServerConnectionState.failed ||
state == ServerConnectionState.disconnected) {
_servers[idx].connectionState = ServerConnectionState.connecting;
notifyListeners();