fix & opt.
- fix: db type err - opt.: server detail page `customCmd` card
This commit is contained in:
@@ -718,6 +718,7 @@ class _ServerDetailPageState extends State<ServerDetailPage>
|
||||
}
|
||||
|
||||
Widget _buildCustom(ServerStatus ss) {
|
||||
if (ss.customCmds.isEmpty) return UIs.placeholder;
|
||||
return CardX(
|
||||
child: ExpandTile(
|
||||
leading: const Icon(MingCute.command_line, size: 17),
|
||||
|
||||
@@ -347,7 +347,8 @@ class _ServerPageState extends State<ServerPage>
|
||||
),
|
||||
),
|
||||
);
|
||||
} else if (!(s.spi.autoConnect ?? true) && s.state == ServerState.disconnected) {
|
||||
} else if (!(s.spi.autoConnect ?? true) &&
|
||||
s.state == ServerState.disconnected) {
|
||||
rightCorner = InkWell(
|
||||
onTap: () => Pros.server.refresh(spi: s.spi),
|
||||
child: const Padding(
|
||||
|
||||
Reference in New Issue
Block a user