Fix missing Alt-N shortcut for newly created favorites
Fl_File_Chooser's "Add Favorite" function wasn't including the Alt-N shortcut when initially added. Now just calls update_favorites() to rebuild the menu with proper shortcut numbering.
This commit is contained in:
parent
7b797bf9ed
commit
cd26829099
@ -515,8 +515,7 @@ Fl_File_Chooser::favoritesButtonCB()
|
||||
prefs_->set(menuname, directory_);
|
||||
prefs_->flush();
|
||||
|
||||
quote_pathname(menuname, directory_, sizeof(menuname));
|
||||
favoritesButton->add(menuname);
|
||||
update_favorites(); // adds item to favorites with Alt-n shortcut
|
||||
|
||||
if (favoritesButton->size() > 104) {
|
||||
((Fl_Menu_Item *)favoritesButton->menu())[0].deactivate();
|
||||
|
Loading…
Reference in New Issue
Block a user