[MSPAINT] Add to recent documents (#2651)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sun, 26 Apr 2020 00:07:14 +0000 (09:07 +0900)
committerGitHub <noreply@github.com>
Sun, 26 Apr 2020 00:07:14 +0000 (09:07 +0900)
Add to recent documents upon file save. CORE-3588

base/applications/mspaint/dib.cpp

index dbe9003..ce74c09 100644 (file)
@@ -69,6 +69,8 @@ SaveDIBToFile(HBITMAP hBitmap, LPTSTR FileName, HDC hDC, LPSYSTEMTIME time, int
     // TODO: update hRes and vRes
 
     CloseHandle(hFile);
+
+    registrySettings.SetMostRecentFile(FileName);
 }
 
 void ShowFileLoadError(LPCTSTR name)