mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
new & opt
new: support set maxRetryCount of server reconnection opt: server detail UI opt: server provider opt: `ssh` page on Android
This commit is contained in:
@@ -18,14 +18,15 @@ class ServerStore extends PersistentStore {
|
||||
return ss;
|
||||
}
|
||||
|
||||
void delete(ServerPrivateInfo s) {
|
||||
box.delete(s.id);
|
||||
void delete(String id) {
|
||||
box.delete(id);
|
||||
}
|
||||
|
||||
void update(ServerPrivateInfo old, ServerPrivateInfo newInfo) {
|
||||
if (!have(old)) {
|
||||
throw Exception('Old ServerPrivateInfo not found');
|
||||
}
|
||||
delete(old.id);
|
||||
put(newInfo);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user