fix: make ExtraChat filtering actually work
This commit is contained in:
1 parent
cfa57ae11a
commit
7dc83bb8a2
3 files changed
+15
-5
No files matched your search
@@ -165,6 +165,10 @@ internal sealed class Tabs : ISettingsTab {
|
||||
|
||||
ImGui.Separator();
|
||||
|
||||
if (tab.ExtraChatAll) {
|
||||
ImGui.BeginDisabled();
|
||||
}
|
||||
|
||||
foreach (var (id, name) in this.Plugin.ExtraChat.ChannelNames) {
|
||||
var enabled = tab.ExtraChatChannels.Contains(id);
|
||||
if (!ImGui.Checkbox($"{name}##ec-{id}", ref enabled)) {
|
||||
@@ -178,6 +182,10 @@ internal sealed class Tabs : ISettingsTab {
|
||||
}
|
||||
}
|
||||
|
||||
if (tab.ExtraChatAll) {
|
||||
ImGui.EndDisabled();
|
||||
}
|
||||
|
||||
ImGui.TreePop();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user