Co-authored-by: CakeAndBanana <admin@cakeandbanana.nl> Reviewed-on: #20 Reviewed-by: defnotken <defnotken@noreply.git.lightless-sync.org> Co-authored-by: cake <cake@noreply.git.lightless-sync.org> Co-committed-by: cake <cake@noreply.git.lightless-sync.org>
This commit was merged in pull request #20.
This commit is contained in:
@@ -43,9 +43,9 @@ public class IdDisplayHandler
|
||||
if (ImGui.IsItemClicked(ImGuiMouseButton.Left))
|
||||
{
|
||||
var prevState = textIsUid;
|
||||
if (_showIdForEntry.ContainsKey(group.GID))
|
||||
if (_showIdForEntry.TryGetValue(group.GID, out bool value))
|
||||
{
|
||||
prevState = _showIdForEntry[group.GID];
|
||||
prevState = value;
|
||||
}
|
||||
_showIdForEntry[group.GID] = !prevState;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user