new: snippet for installing ServerBoxMonitor

This commit is contained in:
lollipopkit
2023-09-07 19:05:46 +08:00
parent 03f9e88bad
commit 4bdf3694c3
2 changed files with 16 additions and 0 deletions

View File

@@ -29,9 +29,19 @@ class SnippetProvider extends ChangeNotifier {
order.removeWhere((e) => surplus.any((ele) => ele == e));
_setting.snippetOrder.put(order);
}
_addInternal();
_updateTags();
}
void _addInternal() {
if (!_setting.fTISBM.fetch()) {
return;
}
_snippets.add(installSBM);
_store.put(installSBM);
_setting.fTISBM.put(false);
}
void _updateTags() {
_tags.clear();
final tags = <String>{};