mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-22 13:24:42 +02:00
Fix Recent Files List not revised issue after "Save As" command
Fix #10946, close #10994
This commit is contained in:
parent
0dd0a9586a
commit
23b2a3fa8e
@ -1717,6 +1717,13 @@ bool Notepad_plus::fileSaveAs(BufferID id, bool isSaveCopy)
|
|||||||
{
|
{
|
||||||
_lastRecentFileList.add(origPathname.c_str());
|
_lastRecentFileList.add(origPathname.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If file is replaced then remove it from recent list
|
||||||
|
if (res && !isSaveCopy)
|
||||||
|
{
|
||||||
|
_lastRecentFileList.remove(fn.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
else //cannot save, other view has buffer already open, activate it
|
else //cannot save, other view has buffer already open, activate it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user