fix: auto reload after restoring

This commit is contained in:
lollipopkit
2023-09-24 15:53:53 +08:00
parent 4619b6ef9c
commit 7bbaa5f5ab
12 changed files with 43 additions and 35 deletions

View File

@@ -17,4 +17,10 @@ class Providers {
static final server = locator<ServerProvider>();
static final sftp = locator<SftpProvider>();
static final snippet = locator<SnippetProvider>();
static void reload() {
key.load();
server.load();
snippet.load();
}
}