remote mount provider support
This commit is contained in:
parent
b2d4baa903
commit
30a91e1cb2
@ -64,7 +64,7 @@ Map<String, dynamic> createDefaultSettings(String mountType) {
|
|||||||
case 'Remote':
|
case 'Remote':
|
||||||
return {
|
return {
|
||||||
'RemoteConfig': {
|
'RemoteConfig': {
|
||||||
'ApiPort': 1,
|
'ApiPort': 20000,
|
||||||
'EncryptionToken': '',
|
'EncryptionToken': '',
|
||||||
'HostNameOrIp': '',
|
'HostNameOrIp': '',
|
||||||
},
|
},
|
||||||
|
@ -179,6 +179,7 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
debugPrint('remote: ${_mountNameController.text}');
|
||||||
await mountList.add(
|
await mountList.add(
|
||||||
_mountType,
|
_mountType,
|
||||||
_mountNameController.text,
|
_mountNameController.text,
|
||||||
@ -209,7 +210,7 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
|||||||
if (_mountType == 'Remote') {
|
if (_mountType == 'Remote') {
|
||||||
_mountNameController.text =
|
_mountNameController.text =
|
||||||
(_settings[_mountType]?['HostNameOrIp'].toString() ?? '') +
|
(_settings[_mountType]?['HostNameOrIp'].toString() ?? '') +
|
||||||
'_' +
|
':' +
|
||||||
(_settings[_mountType]?['ApiPort'].toString() ?? '');
|
(_settings[_mountType]?['ApiPort'].toString() ?? '');
|
||||||
} else if (changed) {
|
} else if (changed) {
|
||||||
_mountNameController.text = mountType == 'Sia' ? 'default' : '';
|
_mountNameController.text = mountType == 'Sia' ? 'default' : '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user