continue settings
This commit is contained in:
parent
b017aeec12
commit
5f713b1f9c
@ -71,6 +71,7 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
List<SettingsTile> commonSettings = [];
|
||||
List<SettingsTile> encryptConfigSettings = [];
|
||||
List<SettingsTile> hostConfigSettings = [];
|
||||
List<SettingsTile> remoteMountSettings = [];
|
||||
List<SettingsTile> s3ConfigSettings = [];
|
||||
@ -109,6 +110,19 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
||||
_addIntSetting(commonSettings, key, value);
|
||||
} else if (key == "RingBufferFileSize") {
|
||||
_addIntSetting(commonSettings, key, value);
|
||||
} else if (key == "EncryptConfig") {
|
||||
value.forEach((subKey, subValue) {
|
||||
if (subKey == "EncryptionToken") {
|
||||
_addPasswordSetting(encryptConfigSettings, subKey, subValue);
|
||||
} else if (subKey == "Path") {
|
||||
_addStringSetting(
|
||||
encryptConfigSettings,
|
||||
subKey,
|
||||
subValue,
|
||||
Icons.folder,
|
||||
);
|
||||
}
|
||||
});
|
||||
} else if (key == "HostConfig") {
|
||||
value.forEach((subKey, subValue) {
|
||||
if (subKey == "AgentString") {
|
||||
@ -205,6 +219,11 @@ class _MountSettingsWidgetState extends State<MountSettingsWidget> {
|
||||
body: SettingsList(
|
||||
shrinkWrap: false,
|
||||
sections: [
|
||||
if (encryptConfigSettings.isNotEmpty)
|
||||
SettingsSection(
|
||||
title: Text('Encrypt Config'),
|
||||
tiles: encryptConfigSettings,
|
||||
),
|
||||
if (hostConfigSettings.isNotEmpty)
|
||||
SettingsSection(
|
||||
title: Text('Host Config'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user