diff --git a/launcher/gui/src/LauncherAppMainFrame.cpp b/launcher/gui/src/LauncherAppMainFrame.cpp index 00e6360a..8ed55117 100644 --- a/launcher/gui/src/LauncherAppMainFrame.cpp +++ b/launcher/gui/src/LauncherAppMainFrame.cpp @@ -113,11 +113,11 @@ void LauncherAppMainFrame::onNewLineOutput(wxCommandEvent& event) { } void LauncherAppMainFrame::OnNotebookPageChanged(wxBookCtrlEvent& event) { + if (event.GetSelection() == 4) prepareWebview(); + else unloadWebview(); } void LauncherAppMainFrame::OnNotebookPageChanging(wxBookCtrlEvent& event) { - if (event.GetSelection() == 4) prepareWebview(); - else unloadWebview(); } void LauncherAppMainFrame::onDhfsInstanceStateChange(wxCommandEvent& event) {