Recompute hashes after saving
After saving the data files, we need to recompute and store the hashes to make sure the updated contents is reflected. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
This commit is contained in:
parent
380124c7a2
commit
f69698569f
3
src/io.c
3
src/io.c
@ -588,6 +588,9 @@ void io_save_cal(enum save_display display)
|
|||||||
keys_wait_for_any_key(win[KEY].p);
|
keys_wait_for_any_key(win[KEY].p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
io_compute_hash(path_apts, apts_sha1);
|
||||||
|
io_compute_hash(path_todo, todo_sha1);
|
||||||
|
|
||||||
io_mutex_unlock();
|
io_mutex_unlock();
|
||||||
run_hook("post-save");
|
run_hook("post-save");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user