Context: set dimensions of window on change_editor
This commit is contained in:
parent
9c368c85d6
commit
6ffa74a24d
|
@ -75,6 +75,8 @@ struct Context
|
|||
void change_editor(Editor& editor)
|
||||
{
|
||||
m_editor.reset(&editor);
|
||||
if (has_window() && has_ui())
|
||||
window().set_dimensions(ui().dimensions());
|
||||
}
|
||||
|
||||
void change_ui(UserInterface& ui)
|
||||
|
|
Loading…
Reference in New Issue
Block a user