1. kankri
  2. notepad2

Commits

kankri  committed 61bdea8

Flash taskbar if the file has been changed externally.

  • Participants
  • Parent commits 9086aee
  • Branches default

Comments (0)

Files changed (1)

File src/Notepad2.c

View file
             if (iFileWatchingMode == fwStatusBar) {
               g_bFileChange = 1;
               UpdateStatusbar();
+              SetForegroundWindow(hwndMain);
             } else {
             if ((iFileWatchingMode == fwAutoLoad && !bModified && iEncoding == iOriginalEncoding) ||
                  MsgBox(MBYESNO,IDS_FILECHANGENOTIFY) == IDYES) {
             if (iFileWatchingMode == fwStatusBar) {
               g_bFileChange = 1;
               UpdateStatusbar();
+              SetForegroundWindow(hwndMain);
             } else {
               if (MsgBox(MBYESNO,IDS_FILECHANGENOTIFY2) == IDYES)
                 FileSave(TRUE,FALSE,FALSE,FALSE);