mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
fix: cloud sync (#769)
This commit is contained in:
@@ -14,8 +14,7 @@ class ContainerStore extends HiveStore {
|
||||
}
|
||||
|
||||
void put(String id, String host) {
|
||||
box.put(id, host);
|
||||
updateLastUpdateTs();
|
||||
set(id, host);
|
||||
}
|
||||
|
||||
ContainerType getType([String id = '']) {
|
||||
@@ -36,10 +35,11 @@ class ContainerStore extends HiveStore {
|
||||
|
||||
void setType(ContainerType type, [String id = '']) {
|
||||
if (type == defaultType) {
|
||||
box.delete(_keyConfig + id);
|
||||
// box.delete(_keyConfig + id);
|
||||
remove(_keyConfig + id);
|
||||
} else {
|
||||
box.put(_keyConfig + id, type.toString());
|
||||
// box.put(_keyConfig + id, type.toString());
|
||||
set(_keyConfig + id, type.toString());
|
||||
}
|
||||
updateLastUpdateTs();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user