Move message dialogs to KICAD_MESSAGE_DIALOG define

Fixes https://gitlab.com/kicad/code/kicad/-/issues/22830
This commit is contained in:
Mark Roszko
2026-01-25 12:34:55 -05:00
parent f6c3627e66
commit 314735e2fc
25 changed files with 121 additions and 112 deletions
@@ -40,6 +40,7 @@
#include <string_utils.h>
#include <tools/pcb_actions.h>
#include <launch_ext.h>
#include <confirm.h>
#ifdef KICAD_IPC_API
#include <api/api_plugin_manager.h>
@@ -225,7 +226,7 @@ void SCRIPTING_TOOL::ShowPluginFolder()
wxString msg = wxString::Format( _( "The plugin directory '%s' does not exist. Create it?" ), pluginpath );
wxMessageDialog dlg( nullptr, msg, _( "Plugin Directory" ), wxYES_NO | wxICON_QUESTION );
KICAD_MESSAGE_DIALOG dlg( nullptr, msg, _( "Plugin Directory" ), wxYES_NO | wxICON_QUESTION );
if( dlg.ShowModal() == wxID_YES )
{