We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace
if(!different) { ::MessageBox(nppData._nppHandle, TEXT("Files Match"), TEXT("Results :"), MB_OK); return true; }
with
if (!different) { if (::MessageBox(nppData._nppHandle, TEXT("Files match.\n\nClose compared files?"), TEXT("Compare Plugin"), MB_YESNO | MB_ICONQUESTION/* | MB_DEFBUTTON2 */) == IDYES) // Yaron - An option to close compared files. { SendMessage(nppData._nppHandle, WM_COMMAND, IDM_FILE_CLOSE, 0); SendMessage(nppData._nppHandle, WM_COMMAND, IDM_VIEW_SWITCHTO_OTHER_VIEW, 0); SendMessage(nppData._nppHandle, WM_COMMAND, IDM_FILE_CLOSE, 0); SendMessage(nppData._nppHandle, WM_COMMAND, IDM_VIEW_SWITCHTO_OTHER_VIEW, 0); } return true; }
Personally I prefer "Yes" to be the default button. Uncomment | MB_DEFBUTTON2 if you think "No" should be default.
| MB_DEFBUTTON2
Thank you.
The text was updated successfully, but these errors were encountered:
Merged to master branch, thanks.
Sorry, something went wrong.
This issue was moved to jsleroy/compare-plugin#23
No branches or pull requests
Replace
with
Personally I prefer "Yes" to be the default button.
Uncomment
| MB_DEFBUTTON2
if you think "No" should be default.Thank you.
The text was updated successfully, but these errors were encountered: