This commit is contained in:
parent
fb6a97b97b
commit
ad4856739e
@ -347,7 +347,11 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
||||
});
|
||||
} else if (key == "RemoteMount") {
|
||||
value.forEach((subKey, subValue) {
|
||||
if (subKey == "ApiPort") {
|
||||
if (subKey == "Enable") {
|
||||
List<SettingsTile> tempSettings = [];
|
||||
_addBooleanSetting(tempSettings, _settings?[key], subKey, subValue);
|
||||
remoteMountSettings.insertAll(0, tempSettings);
|
||||
} else if (subKey == "ApiPort") {
|
||||
_addIntSetting(
|
||||
remoteMountSettings,
|
||||
_settings?[key],
|
||||
@ -361,13 +365,6 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
||||
subKey,
|
||||
subValue,
|
||||
);
|
||||
} else if (subKey == "Enable") {
|
||||
_addBooleanSetting(
|
||||
remoteMountSettings,
|
||||
_settings?[key],
|
||||
subKey,
|
||||
subValue,
|
||||
);
|
||||
} else if (subKey == "EncryptionToken") {
|
||||
_addPasswordSetting(
|
||||
remoteMountSettings,
|
||||
@ -488,7 +485,10 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
||||
if (remoteMountSettings.isNotEmpty)
|
||||
SettingsSection(
|
||||
title: const Text('Remote Mount'),
|
||||
tiles: remoteMountSettings,
|
||||
tiles:
|
||||
_settings?["RemoteMount"]["Enable"] as bool
|
||||
? remoteMountSettings
|
||||
: [remoteMountSettings[0]],
|
||||
),
|
||||
SettingsSection(title: const Text('Settings'), tiles: commonSettings),
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user