portal configuration
This commit is contained in:
@ -34,26 +34,23 @@ class _MountWidgetState extends State<MountWidget> {
|
||||
);
|
||||
|
||||
return ListTile(
|
||||
isThreeLine: isActive,
|
||||
isThreeLine: true,
|
||||
leading: IconButton(
|
||||
icon: Icon(Icons.settings, color: textColor),
|
||||
onPressed: () {
|
||||
Navigator.pushNamed(context, '/settings', arguments: mount);
|
||||
},
|
||||
),
|
||||
subtitle:
|
||||
isActive
|
||||
? Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
nameText,
|
||||
SelectableText(
|
||||
mount.path,
|
||||
style: TextStyle(color: subTextColor),
|
||||
),
|
||||
],
|
||||
)
|
||||
: nameText,
|
||||
subtitle: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
nameText,
|
||||
SelectableText(
|
||||
mount.path,
|
||||
style: TextStyle(color: subTextColor),
|
||||
),
|
||||
],
|
||||
),
|
||||
title: SelectableText(
|
||||
initialCaps(mount.type),
|
||||
style: TextStyle(color: textColor, fontWeight: FontWeight.bold),
|
||||
@ -72,7 +69,7 @@ class _MountWidgetState extends State<MountWidget> {
|
||||
});
|
||||
|
||||
String? location;
|
||||
if (!isActive) {
|
||||
if (!isActive && mount.path.isEmpty) {
|
||||
location = await mount.getMountLocation();
|
||||
if (location == null) {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user