mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Fix detection no theme.
This commit is contained in:
parent
e8eecae4c4
commit
e0e6c5e670
1 changed files with 9 additions and 0 deletions
|
@ -855,6 +855,15 @@ gboolean rofi_theme_is_empty ( void )
|
|||
if ( rofi_theme->properties == NULL && rofi_theme->num_widgets == 0 ) {
|
||||
return TRUE;
|
||||
}
|
||||
if ( rofi_theme->num_widgets == 3 ) {
|
||||
// HACK: check for default added elements.
|
||||
for ( unsigned int i = 0; i < rofi_theme->num_widgets;i++) {
|
||||
if ( strncmp ( rofi_theme->widgets[i]->name, "element", 7) != 0 ){
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue