diff options
Diffstat (limited to 'apps/menus/theme_menu.c')
-rw-r--r-- | apps/menus/theme_menu.c | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/apps/menus/theme_menu.c b/apps/menus/theme_menu.c index 61a6937e3c..9c7a174f7f 100644 --- a/apps/menus/theme_menu.c +++ b/apps/menus/theme_menu.c | |||
@@ -165,16 +165,6 @@ MAKE_MENU(colors_settings, ID2P(LANG_COLORS_MENU), | |||
165 | /* BARS MENU */ | 165 | /* BARS MENU */ |
166 | /* */ | 166 | /* */ |
167 | 167 | ||
168 | static int list_update_callback(int action, | ||
169 | const struct menu_item_ex *this_item, | ||
170 | struct gui_synclist *this_list) | ||
171 | { | ||
172 | (void)this_item; | ||
173 | if (action == ACTION_EXIT_MENUITEM) | ||
174 | gui_synclist_init_display_settings(this_list); | ||
175 | return ACTION_REDRAW; | ||
176 | } | ||
177 | |||
178 | static int statusbar_callback_ex(int action,const struct menu_item_ex *this_item, | 168 | static int statusbar_callback_ex(int action,const struct menu_item_ex *this_item, |
179 | enum screen_type screen) | 169 | enum screen_type screen) |
180 | { | 170 | { |
@@ -213,7 +203,7 @@ static int statusbar_callback(int action, | |||
213 | return statusbar_callback_ex(action, this_item, SCREEN_MAIN); | 203 | return statusbar_callback_ex(action, this_item, SCREEN_MAIN); |
214 | } | 204 | } |
215 | 205 | ||
216 | MENUITEM_SETTING(scrollbar_item, &global_settings.scrollbar, list_update_callback); | 206 | MENUITEM_SETTING(scrollbar_item, &global_settings.scrollbar, NULL); |
217 | MENUITEM_SETTING(scrollbar_width, &global_settings.scrollbar_width, NULL); | 207 | MENUITEM_SETTING(scrollbar_width, &global_settings.scrollbar_width, NULL); |
218 | MENUITEM_SETTING(statusbar, &global_settings.statusbar, statusbar_callback); | 208 | MENUITEM_SETTING(statusbar, &global_settings.statusbar, statusbar_callback); |
219 | #ifdef HAVE_REMOTE_LCD | 209 | #ifdef HAVE_REMOTE_LCD |
@@ -367,6 +357,7 @@ static int showicons_callback(int action, | |||
367 | struct gui_synclist *this_list) | 357 | struct gui_synclist *this_list) |
368 | { | 358 | { |
369 | (void)this_item; | 359 | (void)this_item; |
360 | (void)this_list; | ||
370 | static bool old_icons; | 361 | static bool old_icons; |
371 | switch (action) | 362 | switch (action) |
372 | { | 363 | { |
@@ -376,7 +367,6 @@ static int showicons_callback(int action, | |||
376 | case ACTION_EXIT_MENUITEM: | 367 | case ACTION_EXIT_MENUITEM: |
377 | if (old_icons != global_settings.show_icons) | 368 | if (old_icons != global_settings.show_icons) |
378 | icons_init(); | 369 | icons_init(); |
379 | gui_synclist_init_display_settings(this_list); | ||
380 | break; | 370 | break; |
381 | } | 371 | } |
382 | return ACTION_REDRAW; | 372 | return ACTION_REDRAW; |
@@ -386,7 +376,7 @@ MENUITEM_SETTING(show_icons, &global_settings.show_icons, showicons_callback); | |||
386 | MENUITEM_FUNCTION(browse_themes, MENU_FUNC_USEPARAM, | 376 | MENUITEM_FUNCTION(browse_themes, MENU_FUNC_USEPARAM, |
387 | ID2P(LANG_CUSTOM_THEME), | 377 | ID2P(LANG_CUSTOM_THEME), |
388 | browse_folder, (void*)&themes, NULL, Icon_Config); | 378 | browse_folder, (void*)&themes, NULL, Icon_Config); |
389 | MENUITEM_SETTING(cursor_style, &global_settings.cursor_style, list_update_callback); | 379 | MENUITEM_SETTING(cursor_style, &global_settings.cursor_style, NULL); |
390 | #if LCD_DEPTH > 1 | 380 | #if LCD_DEPTH > 1 |
391 | MENUITEM_SETTING(sep_menu, &global_settings.list_separator_height, NULL); | 381 | MENUITEM_SETTING(sep_menu, &global_settings.list_separator_height, NULL); |
392 | #endif | 382 | #endif |