13
0

Remember Virtual-Keyboard window size and position

This commit is contained in:
Robin Gareus 2019-11-24 18:20:49 +01:00
parent 9a8ca01cb0
commit 1df47e9fb4
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -873,7 +873,9 @@ ARDOUR_UI::save_ardour_state ()
_session->add_instant_xml (location_ui->ui().get_state ());
}
if (virtual_keyboard_window) {
_session->add_instant_xml (virtual_keyboard_window->get_state());
XMLNode& vkstate (virtual_keyboard_window->get_state());
vkstate.add_child_nocopy (virtual_keyboard_window.get_state ());
_session->add_instant_xml (vkstate);
}
} else {
Config->add_instant_xml (main_window_node);
@ -885,7 +887,9 @@ ARDOUR_UI::save_ardour_state ()
Config->add_instant_xml (location_ui->ui().get_state ());
}
if (virtual_keyboard_window) {
Config->add_instant_xml (virtual_keyboard_window->get_state());
XMLNode& vkstate (virtual_keyboard_window->get_state());
vkstate.add_child_nocopy (virtual_keyboard_window.get_state ());
_session->add_instant_xml (vkstate);
}
}