File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed
Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,8 @@ class _ConfigScreenState extends State<ConfigScreen> {
125125 // boolean "switch"
126126 if (k.contains ("use_" ) ||
127127 k.contains ("disable_" ) ||
128- k.contains ("enable" )) {
128+ k.contains ("enable" ) ||
129+ (k.contains ("auto_start" ) && filename.contains ("ltc" ))) {
129130 wlist.add (ListTile (
130131 title: Text (prettyConfigText (k)),
131132 trailing: Switch (
@@ -211,6 +212,25 @@ class _ConfigScreenState extends State<ConfigScreen> {
211212 }
212213 });
213214 })));
215+ }
216+
217+ // merge mode selection
218+ else if (k.contains ("merge_mode" )) {
219+ String direction = v;
220+ wlist.add (ListTile (
221+ title: Text (prettyConfigText (k)),
222+ subtitle: Text ("$v " ),
223+ trailing: Switch (
224+ value: (direction.contains ("htp" )),
225+ onChanged: (value) {
226+ this .setState (() {
227+ if (value == false ) {
228+ _setNewValue (filename, k, "ltp" );
229+ } else {
230+ _setNewValue (filename, k, "htp" );
231+ }
232+ });
233+ })));
214234 } else {
215235 // default response is to ask for text edit
216236 wlist.add (ListTile (
You can’t perform that action at this time.
0 commit comments