diff options
Diffstat (limited to 'apps/plugins/text_viewer/tv_preferences.c')
-rw-r--r-- | apps/plugins/text_viewer/tv_preferences.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/text_viewer/tv_preferences.c b/apps/plugins/text_viewer/tv_preferences.c index 72cda9d00f..a90c72d8e9 100644 --- a/apps/plugins/text_viewer/tv_preferences.c +++ b/apps/plugins/text_viewer/tv_preferences.c | |||
@@ -58,6 +58,7 @@ static void tv_notify_change_preferences(const struct tv_preferences *oldp) | |||
58 | #ifdef HAVE_LCD_BITMAP | 58 | #ifdef HAVE_LCD_BITMAP |
59 | (oldp->header_mode != preferences->header_mode) || | 59 | (oldp->header_mode != preferences->header_mode) || |
60 | (oldp->footer_mode != preferences->footer_mode) || | 60 | (oldp->footer_mode != preferences->footer_mode) || |
61 | (oldp->statusbar != preferences->statusbar) || | ||
61 | (rb->strcmp(oldp->font_name, preferences->font_name)) || | 62 | (rb->strcmp(oldp->font_name, preferences->font_name)) || |
62 | #endif | 63 | #endif |
63 | (rb->strcmp(oldp->file_name, preferences->file_name))) | 64 | (rb->strcmp(oldp->file_name, preferences->file_name))) |
@@ -99,13 +100,15 @@ void tv_set_default_preferences(struct tv_preferences *p) | |||
99 | p->horizontal_scrollbar = SB_OFF; | 100 | p->horizontal_scrollbar = SB_OFF; |
100 | p->vertical_scrollbar = SB_OFF; | 101 | p->vertical_scrollbar = SB_OFF; |
101 | #ifdef HAVE_LCD_BITMAP | 102 | #ifdef HAVE_LCD_BITMAP |
102 | p->header_mode = HD_BOTH; | 103 | p->header_mode = HD_PATH; |
103 | p->footer_mode = FT_BOTH; | 104 | p->footer_mode = FT_PAGE; |
105 | p->statusbar = true; | ||
104 | rb->strlcpy(p->font_name, rb->global_settings->font_file, MAX_PATH); | 106 | rb->strlcpy(p->font_name, rb->global_settings->font_file, MAX_PATH); |
105 | p->font = rb->font_get(FONT_UI); | 107 | p->font = rb->font_get(FONT_UI); |
106 | #else | 108 | #else |
107 | p->header_mode = HD_NONE; | 109 | p->header_mode = HD_NONE; |
108 | p->footer_mode = FT_NONE; | 110 | p->footer_mode = FT_NONE; |
111 | p->statusbar = false; | ||
109 | #endif | 112 | #endif |
110 | p->autoscroll_speed = 1; | 113 | p->autoscroll_speed = 1; |
111 | p->narrow_mode = NM_PAGE; | 114 | p->narrow_mode = NM_PAGE; |