fix: backup merge
This commit is contained in:
@@ -13,6 +13,7 @@ class DockerStore extends PersistentStore {
|
||||
|
||||
void put(String id, String host) {
|
||||
box.put(id, host);
|
||||
box.updateLastModified();
|
||||
}
|
||||
|
||||
ContainerType getType([String? id]) {
|
||||
@@ -26,5 +27,6 @@ class DockerStore extends PersistentStore {
|
||||
|
||||
void setType(String? id, ContainerType type) {
|
||||
box.put(_keyConfig + (id ?? ''), type.toString());
|
||||
box.updateLastModified();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ class _ListHistory {
|
||||
_history.remove(path);
|
||||
_history.insert(0, path);
|
||||
_box.put(_name, _history);
|
||||
_box.updateLastModified();
|
||||
}
|
||||
|
||||
List get all => _history;
|
||||
@@ -38,6 +39,7 @@ class _MapHistory {
|
||||
void put(String id, String val) {
|
||||
_history[id] = val;
|
||||
_box.put(_name, _history);
|
||||
_box.updateLastModified();
|
||||
}
|
||||
|
||||
String? fetch(String id) => _history[id];
|
||||
|
||||
@@ -6,6 +6,7 @@ class PrivateKeyStore extends PersistentStore {
|
||||
|
||||
void put(PrivateKeyInfo info) {
|
||||
box.put(info.id, info);
|
||||
box.updateLastModified();
|
||||
}
|
||||
|
||||
List<PrivateKeyInfo> fetch() {
|
||||
@@ -27,5 +28,6 @@ class PrivateKeyStore extends PersistentStore {
|
||||
|
||||
void delete(PrivateKeyInfo s) {
|
||||
box.delete(s.id);
|
||||
box.updateLastModified();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ class ServerStore extends PersistentStore {
|
||||
|
||||
void put(ServerPrivateInfo info) {
|
||||
box.put(info.id, info);
|
||||
box.updateLastModified();
|
||||
}
|
||||
|
||||
List<ServerPrivateInfo> fetch() {
|
||||
@@ -22,10 +23,12 @@ class ServerStore extends PersistentStore {
|
||||
|
||||
void delete(String id) {
|
||||
box.delete(id);
|
||||
box.updateLastModified();
|
||||
}
|
||||
|
||||
void deleteAll() {
|
||||
box.clear();
|
||||
box.updateLastModified();
|
||||
}
|
||||
|
||||
void update(ServerPrivateInfo old, ServerPrivateInfo newInfo) {
|
||||
|
||||
@@ -6,6 +6,7 @@ class SnippetStore extends PersistentStore {
|
||||
|
||||
void put(Snippet snippet) {
|
||||
box.put(snippet.name, snippet);
|
||||
box.updateLastModified();
|
||||
}
|
||||
|
||||
List<Snippet> fetch() {
|
||||
@@ -22,5 +23,6 @@ class SnippetStore extends PersistentStore {
|
||||
|
||||
void delete(Snippet s) {
|
||||
box.delete(s.name);
|
||||
box.updateLastModified();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user