From 3c4c4e5166d611922e43eb699d9d311ad84cfa14 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 30 Nov 2022 17:36:05 +0000 Subject: [PATCH] Remove shortened debug time from zone refill message. Also adds a time-out for it. --- pcbnew/tools/zone_filler_tool.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/tools/zone_filler_tool.cpp b/pcbnew/tools/zone_filler_tool.cpp index e91df7fb36..fc6bdd2676 100644 --- a/pcbnew/tools/zone_filler_tool.cpp +++ b/pcbnew/tools/zone_filler_tool.cpp @@ -258,7 +258,7 @@ int ZONE_FILLER_TOOL::ZoneFillDirty( const TOOL_EVENT& aEvent ) rebuildConnectivity(); refresh(); - if( GetRunningMicroSecs() - startTime > 1000000 ) + if( GetRunningMicroSecs() - startTime > 3000000 ) // 3 seconds { WX_INFOBAR* infobar = frame->GetInfoBar(); @@ -274,9 +274,9 @@ int ZONE_FILLER_TOOL::ZoneFillDirty( const TOOL_EVENT& aEvent ) infobar->RemoveAllButtons(); infobar->AddButton( button ); - infobar->ShowMessage( _( "Automatic refill of zones can be turned off in Preferences " - "if it becomes too slow." ), - wxICON_INFORMATION ); + infobar->ShowMessageFor( _( "Automatic refill of zones can be turned off in Preferences " + "if it becomes too slow." ), + 10000, wxICON_INFORMATION, WX_INFOBAR::MESSAGE_TYPE::GENERIC ); } if( filler.IsDebug() )