Skip to content

Commit

Permalink
Merge pull request martijnvanbrummelen#535 from PartialVolume/Fix_inc…
Browse files Browse the repository at this point in the history
…orrect_footer_on_return_to_preview

Fix incorrect footer on return to preview
  • Loading branch information
PartialVolume authored Dec 16, 2023
2 parents fd6cca7 + 43bfb3a commit eef25e8
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions src/gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -4726,33 +4726,26 @@ void nwipe_gui_preview_org_customer( int mode )
const char *customer_name, *customer_address, *customer_contact_name, *customer_contact_phone;
extern config_t nwipe_cfg;

/* Update the footer window. */
werase( footer_window );
if( mode == SHOWING_IN_CONFIG_MENUS )
{
nwipe_gui_title( footer_window, selection_footer );
}
else
{
nwipe_gui_title( footer_window, selection_footer_preview_prior_to_drive_selection );
}
wrefresh( footer_window );

do
{
do
{
/* Clear the main window. */
werase( main_window );

/* Update the footer window. */
werase( footer_window );
if( mode == SHOWING_IN_CONFIG_MENUS )
{
nwipe_gui_title( footer_window, selection_footer );
nwipe_gui_create_all_windows_on_terminal_resize( 0, selection_footer );
}
else
{
nwipe_gui_create_all_windows_on_terminal_resize( 0, selection_footer_preview_prior_to_drive_selection );
nwipe_gui_title( footer_window, selection_footer_preview_prior_to_drive_selection );
}
wrefresh( footer_window );

/* Determine size of window */
getmaxyx( main_window, wlines, wcols );
Expand Down

0 comments on commit eef25e8

Please sign in to comment.