Support Custom Tor Configuration #300

Merged
erinn merged 4 commits from custom_tor_config into trunk 2022-01-12 23:19:15 +00:00
3 changed files with 14 additions and 12 deletions
Showing only changes of commit 958be3e8f7 - Show all commits

View File

@ -1 +1 @@
2022-01-07-16-29-v1.5.4
2022-01-12-17-26-v1.5.4-3-gaf47036

View File

@ -1 +1 @@
2022-01-07-21-30-v1.5.4
2022-01-12-22-26-v1.5.4-3-gaf47036

View File

@ -133,16 +133,18 @@ class _TorStatusView extends State<TorStatusView> {
inactiveTrackColor: settings.theme.defaultButtonDisabledColor,
secondary: Icon(CwtchIcons.enable_experiments, color: settings.current().mainTextColor),
),
Visibility(visible: settings.useCustomTorConfig, child: Padding(
padding: EdgeInsets.all(5),
child: CwtchTextField(
controller: torConfigController,
multiLine: true,
onChanged: (torConfig) {
settings.torConfig = torConfig;
saveSettings(context);
},
)))
Visibility(
visible: settings.useCustomTorConfig,
child: Padding(
padding: EdgeInsets.all(5),
child: CwtchTextField(
controller: torConfigController,
multiLine: true,
onChanged: (torConfig) {
settings.torConfig = torConfig;
saveSettings(context);
},
)))
]))
]))));
});