fix: request channel info on window open

This commit is contained in:
Anna 2022-07-16 02:34:24 -04:00
parent 7ec653f709
commit db772c01e8
1 changed files with 4 additions and 0 deletions

View File

@ -705,6 +705,10 @@ internal class PluginUi : IDisposable {
}
if (ImGui.TableSetColumnIndex(1) && this._selectedChannel != Guid.Empty) {
if (ImGui.IsWindowAppearing()) {
Task.Run(async () => await this.Plugin.Client.ListMembers(this._selectedChannel));
}
void DrawInfo() {
if (!this.Plugin.Client.TryGetChannel(this._selectedChannel, out var channel)) {
return;