mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 17:53:45 +01:00
Update title with file path
This commit is contained in:
parent
31aa53017a
commit
3bc6224976
@ -497,6 +497,9 @@ document_open(zathura_t* zathura, const char* path, const char* password)
|
||||
page_set_delayed(zathura, document->current_page_number);
|
||||
cb_view_vadjustment_value_changed(NULL, zathura);
|
||||
|
||||
/* update title */
|
||||
girara_set_window_title(zathura->ui.session, document->file_path);
|
||||
|
||||
free(file_uri);
|
||||
|
||||
return true;
|
||||
@ -597,6 +600,9 @@ document_close(zathura_t* zathura, bool keep_monitor)
|
||||
girara_statusbar_item_set_text(zathura->ui.session, zathura->ui.statusbar.file, "[No name]");
|
||||
}
|
||||
|
||||
/* update title */
|
||||
girara_set_window_title(zathura->ui.session, "zathura");
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user