1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Index: apps/plugins/disktidy.c
===================================================================
--- apps/plugins/disktidy.c	(revision 28331)
+++ apps/plugins/disktidy.c	(working copy)
@@ -496,7 +496,6 @@

             case 1:
             {
-                bool show_icons = rb->global_settings->show_icons;
                 struct simplelist_info list;
                 rb->simplelist_info_init(&list, "Files to Clean",
                                          tidy_type_count, NULL);
@@ -504,7 +503,6 @@
                 list.get_name = get_name;
                 list.action_callback = list_action_callback;
                 rb->simplelist_show_list(&list);
-                rb->global_settings->show_icons = show_icons;
             }
             break;

Index: apps/gui/bitmap/list.c
===================================================================
--- apps/gui/bitmap/list.c	(revision 28331)
+++ apps/gui/bitmap/list.c	(working copy)
@@ -331,7 +331,7 @@
         }
         /* do the icon */
         display->set_viewport(&list_icons);
-        if (list->callback_get_item_icon && global_settings.show_icons)
+        if (list->callback_get_item_icon != NULL)
         {
             screen_put_icon_with_offset(display, show_cursor?1:0,
                                     (line),show_cursor?ICON_PADDING:0,draw_offset,
@@ -468,7 +468,7 @@
         return ACTION_NONE;

     /* x and y are relative to info_vp */
-    if (global_settings.show_icons)
+    if (list->callback_get_item_icon != NULL)
         icon_width += get_icon_width(screen);
     if (show_cursor)
         icon_width += get_icon_width(screen);