settings file and save/restore ui state
This commit is contained in:
@@ -32,6 +32,15 @@ void NodePanelFloating::init_controls()
|
||||
m_button_minimize = find<NodeButton>("button-minimize");
|
||||
m_button_minimize->on_click = [this](Node*) {
|
||||
m_container->ToggleVisibility();
|
||||
if (m_container->m_display)
|
||||
{
|
||||
SetHeight(m_extended_size.y);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_extended_size.y = GetHeight();
|
||||
SetHeight(YGUndefined);
|
||||
}
|
||||
};
|
||||
m_button_close = find<NodeButton>("button-close");
|
||||
m_button_close->on_click = [this](Node*) {
|
||||
|
||||
Reference in New Issue
Block a user