mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-27 07:44:24 +02:00
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:
parent
c8020647dd
commit
2804ac79f0
@ -773,7 +773,7 @@ struct NppGUI final
|
|||||||
|
|
||||||
bool _checkHistoryFiles = false;
|
bool _checkHistoryFiles = false;
|
||||||
|
|
||||||
RECT _appPos {0, 0, 1500, 1000};
|
RECT _appPos {0, 0, 1024, 700};
|
||||||
|
|
||||||
RECT _findWindowPos {};
|
RECT _findWindowPos {};
|
||||||
bool _findWindowLessMode = false;
|
bool _findWindowLessMode = false;
|
||||||
|
@ -877,7 +877,7 @@ public:
|
|||||||
|
|
||||||
NppParameters& params = NppParameters::getInstance();
|
NppParameters& params = NppParameters::getInstance();
|
||||||
NppGUI& nppGUI = params.getNppGUI();
|
NppGUI& nppGUI = params.getNppGUI();
|
||||||
if (okPressed && nppGUI._openSaveDir == dir_last)
|
if (nppGUI._openSaveDir == dir_last)
|
||||||
{
|
{
|
||||||
// Note: IFileDialog doesn't modify the current directory.
|
// 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.
|
// At least, after it is hidden, the current directory is the same as before it was shown.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user