You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
m_data->pszModuleName = PLUGIN_MODULE_NAME; // the plugin filename
568
+
m_data->dlgID = 1; // zero based index of the plugin's published funcs array command (here the "Show Console" in the getGeneratedFuncItemArray exported func)
MessageBox(NULL, _T("A fatal error has occurred. Notepad++ has incorrectly called getFuncsArray() before setInfo(). No menu items will be available for PythonScript."), _T("Python Script"), 0);
148
+
MessageBox(NULL, _T("A fatal error has occurred. Notepad++ has incorrectly called getFuncsArray() before setInfo(). No menu items will be available for PythonScript."), PLUGIN_NAME, 0);
if (!pythonHandler->runScript(statement, synchronous, allowQueuing, completedEvent, true))
502
505
{
503
-
MessageBox(NULL, _T("Another script is currently running. Running two scripts at the same time could produce unpredicable results, and is therefore disabled."), _T("Python Script"), 0);
506
+
MessageBox(NULL, _T("Another script is currently running. Running two scripts at the same time could produce unpredicable results, and is therefore disabled."), PLUGIN_NAME, 0);
if (!pythonHandler->runScript(filename, synchronous, allowQueuing, completedEvent))
555
558
{
556
-
MessageBox(NULL, _T("Another script is currently running. Running two scripts at the same time could produce unpredicable results, and is therefore disabled."), _T("Python Script"), 0);
559
+
MessageBox(NULL, _T("Another script is currently running. Running two scripts at the same time could produce unpredicable results, and is therefore disabled."), PLUGIN_NAME, 0);
557
560
}
558
561
}
559
562
@@ -577,12 +580,20 @@ static void toggleConsole()
577
580
if (MenuManager::getInstance()->s_menuItemConsoleChecked)
578
581
{
579
582
g_console->hideDialog();
583
+
g_bToggleConsoleFlag = false; // this is not necessary but maybe for a future use...
580
584
}
581
585
else
582
586
{
583
587
g_console->showDialog();
588
+
g_bToggleConsoleFlag = true; // this is not necessary but maybe for a future use...
584
589
}
585
590
}
591
+
else
592
+
{
593
+
// track the PS console showing/hiding requests even without the full PS initialization
594
+
// - this fixes the Notepad++ DockingManager-init as it calls this func even before the PS plugin full init at its NPPN_READY
0 commit comments