mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-23 05:45:00 +02:00
Mark modified files with "*" in Windows menu dropdown
Fix #16542, close #16551
This commit is contained in:
parent
bf1f4769ec
commit
108e555557
@ -1170,6 +1170,11 @@ void WindowsMenu::initPopupMenu(HMENU hMenu, DocTabView* pTab)
|
||||
|
||||
wstring strBuffer(BuildMenuFileName(60, static_cast<int32_t>(pos), buf->getFileName(), !isDropListMenu));
|
||||
std::vector<wchar_t> vBuffer(strBuffer.begin(), strBuffer.end());
|
||||
if (buf->isDirty())
|
||||
{
|
||||
// add a '*' after the modified tab name (like Visual Studio)
|
||||
vBuffer.push_back('*');
|
||||
}
|
||||
vBuffer.push_back('\0');
|
||||
mii.dwTypeData = (&vBuffer[0]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user