[BUG_FIXED] Fix "Restore last closed file" (Ctrl+Shift+T) display bug.
parent
c683b344e4
commit
e2f19f30ca
|
@ -59,7 +59,6 @@ void LastRecentFileList::switchMode()
|
|||
//Remove all menu items
|
||||
::RemoveMenu(_hMenu, IDM_FILE_RESTORELASTCLOSEDFILE, MF_BYCOMMAND);
|
||||
::RemoveMenu(_hMenu, IDM_OPEN_ALL_RECENT_FILE, MF_BYCOMMAND);
|
||||
::RemoveMenu(_hMenu, IDM_FILE_RESTORELASTCLOSEDFILE, MF_BYCOMMAND);
|
||||
::RemoveMenu(_hMenu, IDM_CLEAN_RECENT_FILE_LIST, MF_BYCOMMAND);
|
||||
|
||||
for(int i = 0; i < _size; ++i)
|
||||
|
|
|
@ -54,13 +54,13 @@
|
|||
#define IDM_FILE_CLOSEALL_TORIGHT (IDM_FILE + 18)
|
||||
#define IDM_FILE_OPEN_FOLDER (IDM_FILE + 19)
|
||||
#define IDM_FILE_OPEN_CMD (IDM_FILE + 20)
|
||||
|
||||
#define IDM_FILE_RESTORELASTCLOSEDFILE (IDM_FILE + 21)
|
||||
// IMPORTANT: If list above is modified, you have to change the following values:
|
||||
|
||||
// To be updated if new menu item(s) is (are) added in menu "File"
|
||||
#define IDM_FILEMENU_LASTONE IDM_FILE_OPEN_CMD
|
||||
// Byond of the last one
|
||||
#define IDM_FILE_RESTORELASTCLOSEDFILE (IDM_FILE + 30)
|
||||
#define IDM_FILEMENU_LASTONE IDM_FILE_RESTORELASTCLOSEDFILE
|
||||
|
||||
|
||||
|
||||
// 0 based position of command "Exit" including the bars in the file menu
|
||||
// and without counting "Recent files history" items
|
||||
|
|
Loading…
Reference in New Issue