OnActivate handler to:

1) Process delayed error messages from background processing
2) Set keyboard focus to the 3D scene if no wx window has keyboard focus.
This commit is contained in:
bubnikv 2019-02-19 14:57:59 +01:00
parent 35b4777e0e
commit 435b5394f7
4 changed files with 43 additions and 5 deletions
src/slic3r/GUI

View file

@ -105,6 +105,11 @@ wxFrame(NULL, wxID_ANY, SLIC3R_BUILD, wxDefaultPosition, wxDefaultSize, wxDEFAUL
event.Skip();
});
Bind(wxEVT_ACTIVATE, [this](wxActivateEvent& event) {
if (m_plater != nullptr && event.GetActive())
m_plater->on_activate();
});
wxGetApp().persist_window_geometry(this);
update_ui_from_settings(); // FIXME (?)