From 82f587f4ff655a11bf38e4fb805e5e4183459cdd Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Wed, 8 Mar 2017 15:10:50 -0500 Subject: [PATCH] Show the busy cursor while loading component chooser --- eeschema/dialogs/dialog_choose_component.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeschema/dialogs/dialog_choose_component.cpp b/eeschema/dialogs/dialog_choose_component.cpp index f5dc9765cc..02b8ae537f 100644 --- a/eeschema/dialogs/dialog_choose_component.cpp +++ b/eeschema/dialogs/dialog_choose_component.cpp @@ -41,6 +41,7 @@ #include #include #include +#include #include #include @@ -66,6 +67,8 @@ DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT( m_deMorganConvert( aDeMorganConvert >= 0 ? aDeMorganConvert : 0 ), m_external_browser_requested( false ) { + wxBusyCursor busy_while_loading; + auto sizer = new wxBoxSizer( wxVERTICAL ); auto splitter = new wxSplitterWindow( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxSP_LIVE_UPDATE ); @@ -99,7 +102,6 @@ DIALOG_CHOOSE_COMPONENT::DIALOG_CHOOSE_COMPONENT( m_sch_view_ctrl->Bind( wxEVT_PAINT, &DIALOG_CHOOSE_COMPONENT::OnSchViewPaint, this ); Layout(); - Centre(); }