mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
Fix -pluginMessage needing filename to work.
Remove filename restriction for -pluginMessage. Fix #16273, close #16340
This commit is contained in:
parent
3ae0875a8c
commit
09abbad3d7
@ -587,7 +587,8 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE /*hPrevInstance
|
|||||||
}
|
}
|
||||||
::SetForegroundWindow(hNotepad_plus);
|
::SetForegroundWindow(hNotepad_plus);
|
||||||
|
|
||||||
if (params.size() > 0) //if there are files to open, use the WM_COPYDATA system
|
if (params.size() > 0 // if there are files to open, use the WM_COPYDATA system
|
||||||
|
|| !cmdLineParams._pluginMessage.empty()) // or pluginMessage is present, use the WM_COPYDATA system as well
|
||||||
{
|
{
|
||||||
CmdLineParamsDTO dto = CmdLineParamsDTO::FromCmdLineParams(cmdLineParams);
|
CmdLineParamsDTO dto = CmdLineParamsDTO::FromCmdLineParams(cmdLineParams);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user