mirror of
https://github.com/davatorium/rofi.git
synced 2025-02-03 15:34:54 -05:00
Show what mode failed to load.
This commit is contained in:
parent
b4c9bad267
commit
a885966f30
1 changed files with 6 additions and 1 deletions
|
@ -197,7 +197,12 @@ static void run_switcher ( ModeMode mode )
|
|||
// Otherwise check if requested mode is enabled.
|
||||
for ( unsigned int i = 0; i < num_modi; i++ ) {
|
||||
if ( !mode_init ( modi[i] ) ) {
|
||||
rofi_view_error_dialog ( ERROR_MSG ( "Failed to initialize all the modi." ), ERROR_MSG_MARKUP );
|
||||
GString *str= g_string_new ( "Failed to initialize the mode: ");
|
||||
g_string_append ( str, modi[i]->name );
|
||||
g_string_append ( str, "\n");
|
||||
|
||||
rofi_view_error_dialog ( str->str, ERROR_MSG_MARKUP );
|
||||
g_string_free (str, FALSE);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue