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':
|
||||
return {
|
||||
'RemoteConfig': {
|
||||
'ApiPort': 1,
|
||||
'ApiPort': 20000,
|
||||
'EncryptionToken': '',
|
||||
'HostNameOrIp': '',
|
||||
},
|
||||
|
@ -179,6 +179,7 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
||||
}
|
||||
}
|
||||
|
||||
debugPrint('remote: ${_mountNameController.text}');
|
||||
await mountList.add(
|
||||
_mountType,
|
||||
_mountNameController.text,
|
||||
@ -209,7 +210,7 @@ class _AddMountScreenState extends State<AddMountScreen> {
|
||||
if (_mountType == 'Remote') {
|
||||
_mountNameController.text =
|
||||
(_settings[_mountType]?['HostNameOrIp'].toString() ?? '') +
|
||||
'_' +
|
||||
':' +
|
||||
(_settings[_mountType]?['ApiPort'].toString() ?? '');
|
||||
} else if (changed) {
|
||||
_mountNameController.text = mountType == 'Sia' ? 'default' : '';
|
||||
|
Loading…
x
Reference in New Issue
Block a user