mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-30 19:54:57 +01:00
Immediately write history file
This commit is contained in:
parent
186353111e
commit
0bdbd6fa3b
1 changed files with 7 additions and 1 deletions
|
@ -228,6 +228,12 @@ zathura_db_set_fileinfo(zathura_database_t* db, const char* file, unsigned int
|
||||||
file_info->page = page;
|
file_info->page = page;
|
||||||
file_info->offset = offset;
|
file_info->offset = offset;
|
||||||
file_info->scale = scale;
|
file_info->scale = scale;
|
||||||
|
|
||||||
|
/* write new history list */
|
||||||
|
zathura_lock_lock(db->history_lock);
|
||||||
|
zathura_db_write_history_to_file(db->history_path, db->history);
|
||||||
|
zathura_lock_unlock(db->history_lock);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
} while (girara_list_iterator_next(iter) != NULL);
|
} while (girara_list_iterator_next(iter) != NULL);
|
||||||
|
@ -253,7 +259,7 @@ zathura_db_set_fileinfo(zathura_database_t* db, const char* file, unsigned int
|
||||||
zathura_db_write_history_to_file(db->history_path, db->history);
|
zathura_db_write_history_to_file(db->history_path, db->history);
|
||||||
zathura_lock_unlock(db->history_lock);
|
zathura_lock_unlock(db->history_lock);
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
Loading…
Reference in a new issue