mirror of https://github.com/davatorium/rofi.git
[Script] Reload dialog, on selecting non-selectable item.
This commit is contained in:
parent
c458047ef6
commit
3bf9d3d3b1
|
@ -258,7 +258,7 @@ static ModeMode script_mode_result ( Mode *sw, int mretv, char **input, unsigned
|
||||||
}
|
}
|
||||||
else if ( ( mretv & MENU_OK ) && rmpd->cmd_list[selected_line].entry != NULL ) {
|
else if ( ( mretv & MENU_OK ) && rmpd->cmd_list[selected_line].entry != NULL ) {
|
||||||
if ( rmpd->cmd_list[selected_line].nonselectable ) {
|
if ( rmpd->cmd_list[selected_line].nonselectable ) {
|
||||||
return FALSE;
|
return RELOAD_DIALOG;
|
||||||
}
|
}
|
||||||
script_mode_reset_highlight ( sw );
|
script_mode_reset_highlight ( sw );
|
||||||
new_list = execute_executor ( sw, rmpd->cmd_list[selected_line].entry, &new_length );
|
new_list = execute_executor ( sw, rmpd->cmd_list[selected_line].entry, &new_length );
|
||||||
|
|
Loading…
Reference in New Issue