mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Don't attempt to update status bar while closing (KICAD-506).
This commit is contained in:
parent
819324aa48
commit
30adcaa390
@ -648,18 +648,27 @@ void EDA_DRAW_FRAME::AddStandardSubMenus( TOOL_MENU& aToolMenu )
|
||||
|
||||
void EDA_DRAW_FRAME::DisplayToolMsg( const wxString& msg )
|
||||
{
|
||||
if( m_isClosing )
|
||||
return;
|
||||
|
||||
SetStatusText( msg, 6 );
|
||||
}
|
||||
|
||||
|
||||
void EDA_DRAW_FRAME::DisplayConstraintsMsg( const wxString& msg )
|
||||
{
|
||||
if( m_isClosing )
|
||||
return;
|
||||
|
||||
SetStatusText( msg, 7 );
|
||||
}
|
||||
|
||||
|
||||
void EDA_DRAW_FRAME::DisplayGridMsg()
|
||||
{
|
||||
if( m_isClosing )
|
||||
return;
|
||||
|
||||
wxString msg;
|
||||
|
||||
GRID_SETTINGS& gridSettings = m_toolManager->GetSettings()->m_Window.grid;
|
||||
@ -674,6 +683,9 @@ void EDA_DRAW_FRAME::DisplayGridMsg()
|
||||
|
||||
void EDA_DRAW_FRAME::DisplayUnitsMsg()
|
||||
{
|
||||
if( m_isClosing )
|
||||
return;
|
||||
|
||||
wxString msg;
|
||||
|
||||
switch( GetUserUnits() )
|
||||
@ -741,6 +753,9 @@ void EDA_DRAW_FRAME::updateStatusBarWidths()
|
||||
|
||||
void EDA_DRAW_FRAME::UpdateStatusBar()
|
||||
{
|
||||
if( m_isClosing )
|
||||
return;
|
||||
|
||||
SetStatusText( GetZoomLevelIndicator(), 1 );
|
||||
|
||||
// Absolute and relative cursor positions are handled by overloading this function and
|
||||
|
Loading…
x
Reference in New Issue
Block a user