mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
rofi: Make sure we parsed the config before parsing bindings
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
parent
e576bc441c
commit
dbac6fba5c
1 changed files with 5 additions and 4 deletions
|
@ -790,10 +790,6 @@ int main ( int argc, char *argv[] )
|
|||
TICK_N ( "Setup mainloop" );
|
||||
|
||||
bindings = nk_bindings_new ();
|
||||
if ( !parse_keys_abe ( bindings ) ) {
|
||||
cleanup ();
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if ( !display_setup ( main_loop, bindings ) ) {
|
||||
g_warning ( "Connection has error" );
|
||||
|
@ -831,6 +827,11 @@ int main ( int argc, char *argv[] )
|
|||
config_parse_cmd_options ( );
|
||||
TICK_N ( "Load cmd config " );
|
||||
|
||||
if ( !parse_keys_abe ( bindings ) ) {
|
||||
cleanup ();
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if ( !dmenu_mode ) {
|
||||
// setup_modi
|
||||
if ( setup_modi () ) {
|
||||
|
|
Loading…
Reference in a new issue