remote mount provider support

This commit is contained in:
Scott E. Graves 2025-03-15 21:56:10 -05:00
parent b2d4baa903
commit 30a91e1cb2
2 changed files with 3 additions and 2 deletions

View File

@ -64,7 +64,7 @@ Map<String, dynamic> createDefaultSettings(String mountType) {
case 'Remote':
return {
'RemoteConfig': {
'ApiPort': 1,
'ApiPort': 20000,
'EncryptionToken': '',
'HostNameOrIp': '',
},

View File

@ -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' : '';