Fix "Last Used Directory" may not be saved issue

Also change open/save "Last Used Directory" behaviour - on last changed directory changed in open/save dialog dialog instead on pressing OK.

Fix  #13914, close #13918
This commit is contained in:
Don Ho 2023-07-22 23:48:50 +02:00
parent c8020647dd
commit 2804ac79f0
2 changed files with 2 additions and 2 deletions

View File

@ -773,7 +773,7 @@ struct NppGUI final
bool _checkHistoryFiles = false;
RECT _appPos {0, 0, 1500, 1000};
RECT _appPos {0, 0, 1024, 700};
RECT _findWindowPos {};
bool _findWindowLessMode = false;

View File

@ -877,7 +877,7 @@ public:
NppParameters& params = NppParameters::getInstance();
NppGUI& nppGUI = params.getNppGUI();
if (okPressed && nppGUI._openSaveDir == dir_last)
if (nppGUI._openSaveDir == dir_last)
{
// Note: IFileDialog doesn't modify the current directory.
// At least, after it is hidden, the current directory is the same as before it was shown.