- spi: use ip as name if empty
- server tab ui
- only display io speed when available
This commit is contained in:
lollipopkit
2023-11-03 22:13:18 +08:00
parent a1b9cecebb
commit e80f6d4cc2
3 changed files with 16 additions and 16 deletions

View File

@@ -393,7 +393,9 @@ class _ServerEditPageState extends State<ServerEditPage> {
}
final spi = ServerPrivateInfo(
name: _nameController.text,
name: _nameController.text.isEmpty
? _ipController.text
: _nameController.text,
ip: _ipController.text,
port: int.parse(_portController.text),
user: _usernameController.text,