mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 17:07:22 +01:00
fixes pair notes, showing server state on stopping connections
This commit is contained in:
parent
7e1a973178
commit
451d604f70
4 changed files with 18 additions and 9 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue