mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
Fix incorrect footer on return to preview
This fixes incorrect footer text being displayed when Enable customer/company preview is enabled and the user select a field to be edited, completes the editing and returns to the preview to select A for accept. Only problem was A=Accept wasn't listed on the footer.
This commit is contained in:
17
src/gui.c
17
src/gui.c
@@ -4726,18 +4726,6 @@ void nwipe_gui_preview_org_customer( int mode )
|
|||||||
const char *customer_name, *customer_address, *customer_contact_name, *customer_contact_phone;
|
const char *customer_name, *customer_address, *customer_contact_name, *customer_contact_phone;
|
||||||
extern config_t nwipe_cfg;
|
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
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
@@ -4745,14 +4733,19 @@ void nwipe_gui_preview_org_customer( int mode )
|
|||||||
/* Clear the main window. */
|
/* Clear the main window. */
|
||||||
werase( main_window );
|
werase( main_window );
|
||||||
|
|
||||||
|
/* Update the footer window. */
|
||||||
|
werase( footer_window );
|
||||||
if( mode == SHOWING_IN_CONFIG_MENUS )
|
if( mode == SHOWING_IN_CONFIG_MENUS )
|
||||||
{
|
{
|
||||||
|
nwipe_gui_title( footer_window, selection_footer );
|
||||||
nwipe_gui_create_all_windows_on_terminal_resize( 0, selection_footer );
|
nwipe_gui_create_all_windows_on_terminal_resize( 0, selection_footer );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
nwipe_gui_create_all_windows_on_terminal_resize( 0, selection_footer_preview_prior_to_drive_selection );
|
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 */
|
/* Determine size of window */
|
||||||
getmaxyx( main_window, wlines, wcols );
|
getmaxyx( main_window, wlines, wcols );
|
||||||
|
|||||||
Reference in New Issue
Block a user