forked from len0rd/rockbox
Do not unnecessarily change and restore the status bar setting (part of FS#10138 by Teruaki Kawashima)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21493 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5acfa34b9c
commit
119cfdaa0a
2 changed files with 0 additions and 13 deletions
|
@ -274,7 +274,6 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
{
|
{
|
||||||
struct gui_synclist properties_lists;
|
struct gui_synclist properties_lists;
|
||||||
int button;
|
int button;
|
||||||
bool prev_show_statusbar;
|
|
||||||
bool quit = false;
|
bool quit = false;
|
||||||
char file[MAX_PATH];
|
char file[MAX_PATH];
|
||||||
rb->strcpy(file, (const char *) parameter);
|
rb->strcpy(file, (const char *) parameter);
|
||||||
|
@ -321,10 +320,6 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
return PLUGIN_OK;
|
return PLUGIN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* prepare the list for the user */
|
|
||||||
prev_show_statusbar = rb->global_settings->statusbar;
|
|
||||||
rb->global_settings->statusbar = false;
|
|
||||||
|
|
||||||
rb->gui_synclist_init(&properties_lists, &get_props, file, false, 1, NULL);
|
rb->gui_synclist_init(&properties_lists, &get_props, file, false, 1, NULL);
|
||||||
rb->gui_synclist_set_title(&properties_lists, its_a_dir ?
|
rb->gui_synclist_set_title(&properties_lists, its_a_dir ?
|
||||||
"Directory properties" :
|
"Directory properties" :
|
||||||
|
@ -347,13 +342,9 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (rb->default_event_handler(button) == SYS_USB_CONNECTED)
|
if (rb->default_event_handler(button) == SYS_USB_CONNECTED)
|
||||||
{
|
|
||||||
rb->global_settings->statusbar = prev_show_statusbar;
|
|
||||||
return PLUGIN_USB_CONNECTED;
|
return PLUGIN_USB_CONNECTED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
rb->global_settings->statusbar = prev_show_statusbar;
|
|
||||||
|
|
||||||
return PLUGIN_OK;
|
return PLUGIN_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -326,14 +326,11 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
bool changed = false;
|
bool changed = false;
|
||||||
int cur_sel=0;
|
int cur_sel=0;
|
||||||
static char copy_buffer[MAX_LINE_LEN];
|
static char copy_buffer[MAX_LINE_LEN];
|
||||||
bool prev_show_statusbar;
|
|
||||||
#ifdef HAVE_LCD_COLOR
|
#ifdef HAVE_LCD_COLOR
|
||||||
bool edit_colors_file = false;
|
bool edit_colors_file = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
copy_buffer[0]='\0';
|
copy_buffer[0]='\0';
|
||||||
prev_show_statusbar = rb->global_settings->statusbar;
|
|
||||||
rb->global_settings->statusbar = false;
|
|
||||||
|
|
||||||
#if LCD_DEPTH > 1
|
#if LCD_DEPTH > 1
|
||||||
rb->lcd_set_backdrop(NULL);
|
rb->lcd_set_backdrop(NULL);
|
||||||
|
@ -515,6 +512,5 @@ enum plugin_status plugin_start(const void* parameter)
|
||||||
}
|
}
|
||||||
rb->gui_synclist_set_nb_items(&lists,line_count);
|
rb->gui_synclist_set_nb_items(&lists,line_count);
|
||||||
}
|
}
|
||||||
rb->global_settings->statusbar = prev_show_statusbar;
|
|
||||||
return PLUGIN_OK;
|
return PLUGIN_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue