Set channel on tab switch

This commit is contained in:
Infi
2024-04-17 22:45:29 +02:00
parent 91a8dd942d
commit 79488fdaab
+6
View File
@@ -1036,6 +1036,9 @@ public sealed class ChatLogWindow : Window, IUiComponent
LastTab = tabI;
tab.Unread = 0;
if (switchedTab && tab.Channel.HasValue)
SetChannel(tab.Channel.Value);
DrawMessageLog(tab, PayloadHandler, GetRemainingHeightForMessageLog(), switchedTab);
ImGui.EndTabItem();
@@ -1078,6 +1081,9 @@ public sealed class ChatLogWindow : Window, IUiComponent
currentTab = tabI;
switchedTab = LastTab != tabI;
LastTab = tabI;
if (switchedTab && tab.Channel.HasValue)
SetChannel(tab.Channel.Value);
}
}