Skip to content

Commit 9b2c57e

Browse files
committed
adding a comment to prevent double toggling for my future self
1 parent 10f46b9 commit 9b2c57e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

PythonScript/src/PythonScript.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,10 @@ extern "C" __declspec(dllexport) LRESULT messageProc(UINT message, WPARAM wParam
404404
return FALSE;
405405
}
406406

407-
case PYSCR_SHOWCONSOLE:
407+
case PYSCR_SHOWCONSOLE:
408+
// In the event that the Npps docking manager attempts to restore the visibility of the dialog at startup,
409+
// and another call like console.show() from startup.py also calls the toggleConsole,
410+
// this would override the original request from the docking manager.
408411
if (g_console && !g_bToggleConsoleFlag)
409412
{
410413
g_console->showDialog();

0 commit comments

Comments
 (0)