Make external hypertext links show a menu before executing.

This commit is contained in:
Jeff Young 2022-08-27 23:57:45 +01:00
parent c0d2052e4b
commit 6bad88e592
1 changed files with 6 additions and 1 deletions

View File

@ -81,7 +81,12 @@ void SCH_NAVIGATE_TOOL::HypertextCommand( const wxString& href )
}
else
{
GetAssociatedDocument( m_frame, href, &m_frame->Prj() );
wxMenu menu;
menu.Append( 1, wxString::Format( _( "Open %s" ), href ) );
if( m_frame->GetPopupMenuSelectionFromUser( menu ) == 1 )
GetAssociatedDocument( m_frame, href, &m_frame->Prj() );
}
}