Use the model's mtime for validating thumbnails

Saves a syscall, generalizes fiv_thumbnail_lookup(),
wastes a tiny bit of memory per entry.
This commit is contained in:
2022-06-04 15:06:10 +02:00
parent 3ddb0cf205
commit e2adac72cc
4 changed files with 15 additions and 21 deletions

View File

@@ -123,8 +123,8 @@ gboolean fiv_io_model_open(FivIoModel *self, GFile *directory, GError **error);
GFile *fiv_io_model_get_location(FivIoModel *self);
typedef struct {
gchar *uri; ///< GIO URI
gchar *collate_key; ///< Collate key for the filename
char *uri; ///< GIO URI
char *collate_key; ///< Collate key for the filename
gint64 mtime_msec; ///< Modification time in milliseconds
} FivIoModelEntry;