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();

View File

@@ -2,9 +2,9 @@
class BuildData {
static const String name = "ServerBox";
static const int build = 138;
static const int build = 140;
static const String engine =
"Flutter 3.0.1 • channel stable • https://github.com/flutter/flutter.git\nFramework • revision fb57da5f94 (2 days ago) • 2022-05-19 15:50:29 -0700\nEngine • revision caaafc5604\nTools • Dart 2.17.1 • DevTools 2.12.2\n";
static const String buildAt = "2022-05-21 20:15:15.896932";
static const int modifications = 6;
static const String buildAt = "2022-05-22 13:26:17.235297";
static const int modifications = 3;
}