From 3fae2e6410960c11c2a209169523c42a5e9b8b1c Mon Sep 17 00:00:00 2001 From: python357-1 <30739625+python357-1@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:51:49 -0600 Subject: [PATCH] Update tagstudio/src/qt/widgets/preview_panel.py Co-authored-by: VasigaranAndAngel <72515046+VasigaranAndAngel@users.noreply.github.com> --- tagstudio/src/qt/widgets/preview_panel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tagstudio/src/qt/widgets/preview_panel.py b/tagstudio/src/qt/widgets/preview_panel.py index b662fbd57..5ff65549d 100644 --- a/tagstudio/src/qt/widgets/preview_panel.py +++ b/tagstudio/src/qt/widgets/preview_panel.py @@ -310,9 +310,9 @@ def fill_libs_widget(self, layout: QVBoxLayout): for access_time in self.driver.cache.library_history: lib_dir = self.driver.cache.library_history[access_time] cut_val = lib_dir - if len(str(lib_dir)) > 45: + if len(lib_dir) > 45: cut_val = f"{lib_dir[0:10]} ... {lib_dir[-10:]}" - lib_items[str(access_time)] = (str(lib_dir), cut_val) + lib_items[access_time] = (lib_dir, cut_val) new_keys = set(lib_items.keys())