make new option type for internal purposes

This commit is contained in:
2024-05-29 00:16:58 +03:00
parent 998fe10e2d
commit af8efcbf4a
2 changed files with 9 additions and 1 deletions
+7
View File
@@ -159,6 +159,12 @@ public class SettingsHandler : CommonHandler
button.Text += $" ({currentChoice.ShortName})";
break;
}
case OptionType.Hidden:
{
button = null;
break;
}
}
return button;
@@ -185,6 +191,7 @@ public class SettingsHandler : CommonHandler
{
var keyboardLayout = _options.ToAsyncEnumerable()
.SelectAwait(async x => await GetKeyboardButton(x))
.Where(x => x != null) // for OptionType.Hidden
.ToEnumerable()
.Chunk(2);
+2 -1
View File
@@ -3,5 +3,6 @@
public enum OptionType
{
OnOff,
Select
Select,
Hidden
}