opt.: ssh alive

This commit is contained in:
lollipopkit
2024-02-01 14:35:15 +08:00
parent 3d5ce4b863
commit 6f3c916273
2 changed files with 49 additions and 42 deletions

View File

@@ -69,11 +69,18 @@ class ServerFuncBtns extends StatelessWidget {
@override
Widget build(BuildContext context) {
final btns = () {
try {
return Stores.setting.serverFuncBtns
.fetch()
.map((e) => ServerFuncBtn.values[e]);
} catch (e) {
return ServerFuncBtn.values;
}
}();
return Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: Stores.setting.serverFuncBtns
.fetch()
.map((e) => ServerFuncBtn.values[e])
children: btns
.map(
(e) => Stores.setting.moveOutServerTabFuncBtns.fetch()
? IconButton(