Rename wxFileHistoryMenuPathStyle values too

Use common wxFH_PATH_ prefix for consistency and try to make the values
more clear.
This commit is contained in:
Vadim Zeitlin
2021-04-05 16:15:49 +02:00
parent 036e35bf28
commit c89921d26d
4 changed files with 35 additions and 20 deletions

View File

@@ -1394,13 +1394,13 @@ void MyFrame::OnFileHistoryStyleItem(wxCommandEvent& event)
switch( event.GetId() )
{
case Menu_Menu_FileHistory1:
m_fileHistory->SetMenuPathStyle(wxFH_HIDE_CURRENT_PATH);
m_fileHistory->SetMenuPathStyle(wxFH_PATH_SHOW_IF_DIFFERENT);
break;
case Menu_Menu_FileHistory2:
m_fileHistory->SetMenuPathStyle(wxFH_HIDE_ALL_PATHS);
m_fileHistory->SetMenuPathStyle(wxFH_PATH_SHOW_NEVER);
break;
case Menu_Menu_FileHistory3:
m_fileHistory->SetMenuPathStyle(wxFH_SHOW_FULL_PATH);
m_fileHistory->SetMenuPathStyle(wxFH_PATH_SHOW_ALWAYS);
break;
}