opt.: snippet result

This commit is contained in:
lollipopkit
2023-10-18 19:14:06 +08:00
parent cf231f9fe6
commit cf4f74dcfc
9 changed files with 119 additions and 77 deletions

View File

@@ -26,20 +26,9 @@ class SnippetProvider extends ChangeNotifier {
Stores.setting.snippetOrder.put(order);
}
}
_addInternal();
_updateTags();
}
void _addInternal() {
if (!Stores.first.iSSBM.fetch() ||
_snippets.any((e) => e.name == installSBM.name)) {
return;
}
_snippets.add(installSBM);
Stores.snippet.put(installSBM);
Stores.first.iSSBM.put(false);
}
void _updateTags() {
_tags.clear();
final tags = <String>{};