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

@@ -13,7 +13,7 @@ class SnippetProvider extends ChangeNotifier {
final _tags = <String>[];
List<String> get tags => _tags;
void loadData() {
void load() {
_snippets = Stores.snippet.fetch();
final order = Stores.setting.snippetOrder.fetch();
if (order.isNotEmpty) {