Set channel on tab switch
This commit is contained in:
@@ -1036,6 +1036,9 @@ public sealed class ChatLogWindow : Window, IUiComponent
|
|||||||
LastTab = tabI;
|
LastTab = tabI;
|
||||||
tab.Unread = 0;
|
tab.Unread = 0;
|
||||||
|
|
||||||
|
if (switchedTab && tab.Channel.HasValue)
|
||||||
|
SetChannel(tab.Channel.Value);
|
||||||
|
|
||||||
DrawMessageLog(tab, PayloadHandler, GetRemainingHeightForMessageLog(), switchedTab);
|
DrawMessageLog(tab, PayloadHandler, GetRemainingHeightForMessageLog(), switchedTab);
|
||||||
|
|
||||||
ImGui.EndTabItem();
|
ImGui.EndTabItem();
|
||||||
@@ -1078,6 +1081,9 @@ public sealed class ChatLogWindow : Window, IUiComponent
|
|||||||
currentTab = tabI;
|
currentTab = tabI;
|
||||||
switchedTab = LastTab != tabI;
|
switchedTab = LastTab != tabI;
|
||||||
LastTab = tabI;
|
LastTab = tabI;
|
||||||
|
|
||||||
|
if (switchedTab && tab.Channel.HasValue)
|
||||||
|
SetChannel(tab.Channel.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user