mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-01 20:25:07 +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
|
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);
|
MenuItemOverrides.Value = MenuItemOverrides.Value.SetItem(prop, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user