Added support for closing AvMenuTreeViewWindow automatically when it loses focus. (#119)

This commit is contained in:
らいちちゃん 2022-12-01 05:40:10 +09:00 committed by GitHub
parent 62eef4d3a5
commit 42618e464c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,11 @@ namespace nadena.dev.modular_avatar.core.editor
_treeView.OnDoubleclickSelect = Close;
}
private void OnLostFocus()
{
Close();
}
private void OnDisable()
{
OnMenuSelected = (menu) => { };