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