fix: gate delete account on being connected

This commit is contained in:
Anna 2022-07-19 19:00:02 -04:00
parent 51889b2b1b
commit 4a16661fd9
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ internal class PluginUi : IDisposable {
Task.Run(async () => await this.Plugin.Client.AllowInvitesToast(this.Plugin.ConfigInfo.AllowInvites));
}
if (ImGui.CollapsingHeader("Delete account")) {
if (this.Plugin.Client.Status == Client.State.Connected && ImGui.CollapsingHeader("Delete account")) {
ImGui.PushTextWrapPos();
if (this.Plugin.Client.Channels.Count > 0) {