1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-25 13:55:34 -05:00

drun: Early return if already initialized

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2017-11-25 11:51:19 +01:00
parent 58ed481198
commit 53e0f957d0
No known key found for this signature in database
GPG key ID: AC203F96E2C34BB7

View file

@ -655,7 +655,9 @@ static void drun_mode_parse_entry_fields ()
static int drun_mode_init ( Mode *sw ) static int drun_mode_init ( Mode *sw )
{ {
if ( mode_get_private_data ( sw ) == NULL ) { if ( mode_get_private_data ( sw ) != NULL )
return TRUE;
static const gchar * const drun_icon_fallback_themes[] = { static const gchar * const drun_icon_fallback_themes[] = {
"Adwaita", "Adwaita",
"gnome", "gnome",
@ -677,7 +679,6 @@ static int drun_mode_init ( Mode *sw )
nk_xdg_theme_preload_themes_icon ( pd->xdg_context, themes ); nk_xdg_theme_preload_themes_icon ( pd->xdg_context, themes );
get_apps ( pd ); get_apps ( pd );
drun_mode_parse_entry_fields (); drun_mode_parse_entry_fields ();
}
return TRUE; return TRUE;
} }
static void drun_entry_clear ( DRunModeEntry *e ) static void drun_entry_clear ( DRunModeEntry *e )