mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 22:04:55 +02:00
Fix saved file from new empty doc keeping created time tip issue
Fix https://community.notepad-plus-plus.org/topic/26235/notepad-v8-7-1-release-candidate/11?_=1730165549940
This commit is contained in:
parent
2aa47e3219
commit
682570ea6d
@ -1888,8 +1888,7 @@ bool Notepad_plus::fileSaveAs(BufferID id, bool isSaveCopy)
|
||||
}
|
||||
fDlg.setTitle(localizedTitle.c_str());
|
||||
|
||||
const wstring checkboxLabel = _nativeLangSpeaker.getLocalizedStrFromID("file-save-assign-type",
|
||||
L"&Append extension");
|
||||
const wstring checkboxLabel = _nativeLangSpeaker.getLocalizedStrFromID("file-save-assign-type", L"&Append extension");
|
||||
fDlg.enableFileTypeCheckbox(checkboxLabel, !defaultAllTypes);
|
||||
|
||||
// Disable file autodetection before opening save dialog to prevent use-after-delete bug.
|
||||
|
@ -1005,12 +1005,16 @@ BOOL Notepad_plus::notify(SCNotification *notification)
|
||||
|
||||
tipTmp = buf->getFullPathName();
|
||||
|
||||
wstring tabCreatedTime = buf->tabCreatedTimeString();
|
||||
if (!tabCreatedTime.empty())
|
||||
|
||||
if (buf->isUntitled())
|
||||
{
|
||||
tipTmp += L"\r";
|
||||
tipTmp += tabCreatedTime;
|
||||
SendMessage(lpttt->hdr.hwndFrom, TTM_SETMAXTIPWIDTH, 0, 200);
|
||||
wstring tabCreatedTime = buf->tabCreatedTimeString();
|
||||
if (!tabCreatedTime.empty())
|
||||
{
|
||||
tipTmp += L"\r";
|
||||
tipTmp += tabCreatedTime;
|
||||
SendMessage(lpttt->hdr.hwndFrom, TTM_SETMAXTIPWIDTH, 0, 200);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user