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