Skip to content

Commit 3fae2e6

Browse files
Update tagstudio/src/qt/widgets/preview_panel.py
Co-authored-by: VasigaranAndAngel <72515046+VasigaranAndAngel@users.noreply.github.com>
1 parent 2cb920a commit 3fae2e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tagstudio/src/qt/widgets/preview_panel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ def fill_libs_widget(self, layout: QVBoxLayout):
310310
for access_time in self.driver.cache.library_history:
311311
lib_dir = self.driver.cache.library_history[access_time]
312312
cut_val = lib_dir
313-
if len(str(lib_dir)) > 45:
313+
if len(lib_dir) > 45:
314314
cut_val = f"{lib_dir[0:10]} ... {lib_dir[-10:]}"
315-
lib_items[str(access_time)] = (str(lib_dir), cut_val)
315+
lib_items[access_time] = (lib_dir, cut_val)
316316

317317
new_keys = set(lib_items.keys())
318318

0 commit comments

Comments
 (0)