Skip to content

Commit

Permalink
Fix #41550 - Favorite pockets menu - move options section before cont…
Browse files Browse the repository at this point in the history
…ents section

* fix fav.pockets interface

Move priority/white/blacklists section before pocket contents section. Otherwise it cannot be seen if there are many items in a pocket.

* Update item_contents.cpp
  • Loading branch information
GGgatherer authored Jul 19, 2020
1 parent ebf5be0 commit 70028b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/item_contents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,16 @@ void pocket_favorite_callback::refresh( uilist *menu )
colorize( whitelist ? _( "whitelist" ) : _( "blacklist" ), c_light_blue ) ) );

selected_pocket->general_info( info, menu->selected + 1, true );
selected_pocket->contents_info( info, menu->selected + 1, true );
starty += fold_and_print( menu->window, point( startx, starty ), width,
c_light_gray, format_item_info( info, {} ) ) + 2;
c_light_gray, format_item_info( info, {} ) ) + 1;

info.clear();
selected_pocket->favorite_info( info );
starty += fold_and_print( menu->window, point( startx, starty ), width,
c_light_gray, format_item_info( info, {} ) ) + 1;

info.clear();
selected_pocket->contents_info( info, menu->selected + 1, true );
fold_and_print( menu->window, point( startx, starty ), width,
c_light_gray, format_item_info( info, {} ) );
}
Expand Down

0 comments on commit 70028b7

Please sign in to comment.