Remove public wxFileHistory::RefreshLabels()
Replace it with a private DoRefreshLabels() and call it ourselves from SetMenuPathStyle() to make the class simpler (and less error-prone, as it's now impossible to forget to call RefreshLabels() any more) to use.
This commit is contained in:
@@ -125,14 +125,6 @@ public:
|
||||
*/
|
||||
virtual void Load(const wxConfigBase& config);
|
||||
|
||||
/**
|
||||
Refresh the labels on all the menu items in the menus used by this
|
||||
file history.
|
||||
|
||||
@since 3.1.5
|
||||
*/
|
||||
void RefreshLabels();
|
||||
|
||||
/**
|
||||
Removes the specified file from the history.
|
||||
*/
|
||||
@@ -169,7 +161,6 @@ public:
|
||||
|
||||
By default, the menu item label style is ::wxFH_PATH_SHOW_IF_DIFFERENT.
|
||||
|
||||
@remarks Use RefreshLabels() to update any existing menu items to the new style.
|
||||
@since 3.1.5
|
||||
*/
|
||||
void SetMenuPathStyle(wxFileHistoryMenuPathStyle style);
|
||||
|
Reference in New Issue
Block a user