settings file and save/restore ui state

This commit is contained in:
2019-04-14 18:03:41 +02:00
parent ada1afbac2
commit a8d475fbfb
15 changed files with 596 additions and 38 deletions

View File

@@ -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*) {