gui changes

This commit is contained in:
Scott E. Graves 2025-03-01 15:47:34 -06:00
parent 311a2688cb
commit c29072d84d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
String formatMountName(String type, String name) {
if (type == "remote") {
return name.replaceAll("_", ":");
}
return name;
}
String initialCaps(String txt) {
if (txt.isEmpty) {
return txt;

View File

@ -31,7 +31,7 @@ class _MountWidgetState extends State<MountWidget> {
crossAxisAlignment: CrossAxisAlignment.start,
children: [Text(mount.name), Text(mount.path)],
)
: Text(mount.name),
: Text(formatMountName(mount.type, mount.name)),
title: Text(initialCaps(mount.type)),
trailing: Icon(mount.state),
);