From 57dd3d6b66156936d170893765d45a169e7010af Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 8 Sep 2017 07:44:35 +0200 Subject: Only reload if data files were changed Instead of blindly reloading data in io_reload_data(), compare the stored hashes of the data files with hashes of the current file contents and only reload if any of the hashes differs. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index 2707305..5fa4639 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -847,7 +847,7 @@ void io_save_cal(enum save_display); void io_load_app(struct item_filter *); void io_load_todo(struct item_filter *); void io_load_data(struct item_filter *); -void io_reload_data(void); +int io_reload_data(void); void io_load_keys(const char *); int io_check_dir(const char *); unsigned io_dir_exists(const char *); -- cgit v1.2.3-54-g00ecf