Updating last differences

This commit is contained in:
Viktor Walter 2022-01-10 17:38:43 +01:00
parent 07cc401639
commit fab61dcce0
2 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
[wrap-git]
directory=girara
url=https://github.com/pwmt/girara.git
url=https://git.pwmt.org/pwmt/girara.git
revision=develop

View File

@ -1424,13 +1424,12 @@ document_save(zathura_t* zathura, const char* path, bool overwrite)
}
if ((overwrite == false) && g_file_test(file_path, G_FILE_TEST_EXISTS)) {
girara_error("File already exists: %s. Use :write! to overwrite it.",
file_path);
girara_notify(zathura->ui.session, GIRARA_ERROR, _("File already exists: %s. Use :write! to overwrite it."), file_path);
g_free(file_path);
return false;
}
zathura_error_t error = zathura_document_save_as(zathura->document, file_path);
const zathura_error_t error = zathura_document_save_as(zathura->document, file_path);
g_free(file_path);
if (error != ZATHURA_ERROR_OK) {