Remove shortened debug time from zone refill message.
Also adds a time-out for it.
This commit is contained in:
parent
55a3946af8
commit
3c4c4e5166
|
@ -258,7 +258,7 @@ int ZONE_FILLER_TOOL::ZoneFillDirty( const TOOL_EVENT& aEvent )
|
||||||
rebuildConnectivity();
|
rebuildConnectivity();
|
||||||
refresh();
|
refresh();
|
||||||
|
|
||||||
if( GetRunningMicroSecs() - startTime > 1000000 )
|
if( GetRunningMicroSecs() - startTime > 3000000 ) // 3 seconds
|
||||||
{
|
{
|
||||||
WX_INFOBAR* infobar = frame->GetInfoBar();
|
WX_INFOBAR* infobar = frame->GetInfoBar();
|
||||||
|
|
||||||
|
@ -274,9 +274,9 @@ int ZONE_FILLER_TOOL::ZoneFillDirty( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
infobar->RemoveAllButtons();
|
infobar->RemoveAllButtons();
|
||||||
infobar->AddButton( button );
|
infobar->AddButton( button );
|
||||||
infobar->ShowMessage( _( "Automatic refill of zones can be turned off in Preferences "
|
infobar->ShowMessageFor( _( "Automatic refill of zones can be turned off in Preferences "
|
||||||
"if it becomes too slow." ),
|
"if it becomes too slow." ),
|
||||||
wxICON_INFORMATION );
|
10000, wxICON_INFORMATION, WX_INFOBAR::MESSAGE_TYPE::GENERIC );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( filler.IsDebug() )
|
if( filler.IsDebug() )
|
||||||
|
|
Loading…
Reference in New Issue