mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-04-24 21:38:59 +08:00
Added support for closing MenuSelectWindow automatically when it loses focus.
This commit is contained in:
parent
f284db4e33
commit
e122b1f5ac
@ -30,6 +30,10 @@ namespace nadena.dev.modular_avatar.core.editor
|
|||||||
_treeView.OnDoubleclickSelect = Close;
|
_treeView.OnDoubleclickSelect = Close;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnLostFocus() {
|
||||||
|
Close();
|
||||||
|
}
|
||||||
|
|
||||||
private void OnDisable()
|
private void OnDisable()
|
||||||
{
|
{
|
||||||
OnMenuSelected = (menu) => { };
|
OnMenuSelected = (menu) => { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user