refactor: pull more strings into resources

This commit is contained in:
Anna
2022-02-04 19:38:19 -05:00
parent 8e7a50e3f3
commit 38cdb98f2d
5 changed files with 194 additions and 2 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ internal sealed class Tabs : ISettingsTab {
if (ImGui.BeginCombo(Language.Options_Tabs_UnreadMode, tab.UnreadMode.ToString())) {
foreach (var mode in Enum.GetValues<UnreadMode>()) {
if (ImGui.Selectable(mode.ToString(), tab.UnreadMode == mode)) {
if (ImGui.Selectable(mode.Name(), tab.UnreadMode == mode)) {
tab.UnreadMode = mode;
}
@@ -102,7 +102,7 @@ internal sealed class Tabs : ISettingsTab {
var sources = (uint) sourcesEnum;
foreach (var source in Enum.GetValues<ChatSource>()) {
if (ImGui.CheckboxFlags(source.ToString(), ref sources, (uint) source)) {
if (ImGui.CheckboxFlags(source.Name(), ref sources, (uint) source)) {
tab.ChatCodes[type] = (ChatSource) sources;
}
}