summaryrefslogtreecommitdiff
path: root/menus.c
diff options
context:
space:
mode:
Diffstat (limited to 'menus.c')
-rw-r--r--menus.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/menus.c b/menus.c
index 3c574ec..a1d0a4e 100644
--- a/menus.c
+++ b/menus.c
@@ -258,20 +258,6 @@ void Show_Main_Menu(void)
int show_item;
int old_cursor_pos;
- if ( (globals.MenuStatus.Type_Of_Menu != Main_Menu_On) ||
- (globals.MenuStatus.Error_Screen == YES) ||
- (globals.MenuStatus.Nonstd_Display == YES) ) {
- LCD_clear();
- }
-
- LCD_entry=-1;
- sig_dig = 4;
- Submenu_extra_fine=NO;
-
- globals.MenuStatus.Type_Of_Menu=Main_Menu_On;
- globals.MenuStatus.Error_Screen=NO;
- globals.MenuStatus.Nonstd_Display=NO;
-
// update remote/local info before starting screen writes, to avoid
// odd-looking pauses
@@ -318,6 +304,21 @@ void Show_Main_Menu(void)
g_free (step6);
+ if ( (globals.MenuStatus.Type_Of_Menu != Main_Menu_On) ||
+ (globals.MenuStatus.Error_Screen == YES) ||
+ (globals.MenuStatus.Nonstd_Display == YES) ) {
+ LCD_clear();
+ }
+
+ LCD_entry=-1;
+ sig_dig = 4;
+ Submenu_extra_fine=NO;
+
+ globals.MenuStatus.Type_Of_Menu=Main_Menu_On;
+ globals.MenuStatus.Error_Screen=NO;
+ globals.MenuStatus.Nonstd_Display=NO;
+
+
/* fill in unused cursor columns */
for (i=0; i<(menu_cursor_pos % LCD_max_entries_per_page); ++i) {
LCD_row=i % LCD_rows;