plugin_framework, Remove plugin enable option

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-05-06 18:45:58 +08:00
parent e6f72e76dd
commit 6f5ff0ac0e
3 changed files with 10 additions and 83 deletions

View File

@@ -1512,18 +1512,7 @@ class _PluginState extends State<_Plugin> {
List<Widget> _buildCards(DescModel model) => [
_Card(
title: 'Plugin',
children: [
_Checkbox(
label: 'Enable',
getValue: () => bind.pluginIsEnabled() ?? false,
setValue: (bool v) async {
if (!v) {
clearLocations();
}
await bind.pluginEnable(v: v);
},
),
],
children: [],
),
...model.all.entries
.map((entry) => PluginCard(pluginId: entry.key, desc: entry.value))