summaryrefslogtreecommitdiffstats
path: root/core/pref.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-05-27 15:42:22 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2018-05-27 23:08:12 +0300
commit308e079ad6414152fe72ba0784582734d6801b75 (patch)
tree2add927a9dd6d4e967c754f1ce4533444deddcf8 /core/pref.h
parent23d38a982deafb6ef12f597a355dc4eae24b832f (diff)
downloadsubsurface-308e079ad6414152fe72ba0784582734d6801b75.tar.gz
Dive pictures: automatically recalculate thumbnails
If a thumbnail and the original picture can be accessed and the modification date of the thumbnail is before the modification date of the picture, recalculate the thumbnail. This causes more disk access and might give strange effects for picture files with messed up file timestamps (i.e. lying in the future) or messed up computer clocks (i.e. running in the past). Therefore, add a preference option to disable the new behavior. Default is set to enabled. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/pref.h')
-rw-r--r--core/pref.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pref.h b/core/pref.h
index 2628c3677..8ca763ce8 100644
--- a/core/pref.h
+++ b/core/pref.h
@@ -154,6 +154,7 @@ struct preferences {
int distance_threshold;
bool git_local_only;
short cloud_timeout;
+ bool auto_recalculate_thumbnails;
locale_prefs_t locale; //: TODO: move the rest of locale based info here.
update_manager_prefs_t update_manager;
dive_computer_prefs_t dive_computer;