gui changes
This commit is contained in:
parent
311a2688cb
commit
c29072d84d
@ -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;
|
||||
|
@ -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),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user