fixes pair notes, showing server state on stopping connections

This commit is contained in:
rootdarkarchon
2023-01-29 16:33:42 +01:00
parent 7e1a973178
commit 451d604f70
4 changed files with 18 additions and 9 deletions

View File

@@ -444,8 +444,12 @@ public class CompactUi : Window, IDisposable
if (ImGui.IsItemClicked(ImGuiMouseButton.Right))
{
entry.SetNote(EditUserComment);
_configService.Save();
var pair = _pairManager.DirectPairs.Find(p => p.UserData.UID == EditNickEntry);
if (pair != null)
{
pair.SetNote(EditUserComment);
_configService.Save();
}
EditUserComment = entry.GetNote() ?? string.Empty;
EditNickEntry = entry.UserPair!.User.UID;
}