mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
fix: deactivating an inactive menu item doesn't work as expected (#1102)
This commit is contained in:
parent
389ae4f2cc
commit
89b4c8f921
@ -133,7 +133,7 @@ namespace nadena.dev.modular_avatar.core.editor.Simulator
|
||||
}
|
||||
else
|
||||
{
|
||||
if (MenuItemOverrides.Value.TryGetValue(prop, out var existing) && ReferenceEquals(existing, item))
|
||||
if (!MenuItemOverrides.Value.TryGetValue(prop, out var existing) || ReferenceEquals(existing, item))
|
||||
MenuItemOverrides.Value = MenuItemOverrides.Value.SetItem(prop, null);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user