From 4653eb2a04d9e2aa9a8b5ff73ceb5851c090a407 Mon Sep 17 00:00:00 2001 From: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> Date: Mon, 4 Aug 2025 12:43:37 -0700 Subject: [PATCH] fix: ensure initial browsing state uses UI values (#1008) --- src/tagstudio/qt/ts_qt.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tagstudio/qt/ts_qt.py b/src/tagstudio/qt/ts_qt.py index f1d6b0fd..2b46431f 100644 --- a/src/tagstudio/qt/ts_qt.py +++ b/src/tagstudio/qt/ts_qt.py @@ -1760,7 +1760,12 @@ class QtDriver(DriverMixin, QObject): self.main_window.preview_panel.set_selection(self.selected) # page (re)rendering, extract eventually - self.update_browsing_state() + initial_state = BrowsingState( + page_index=0, + sorting_mode=self.main_window.sorting_mode, + ascending=self.main_window.sorting_direction, + ) + self.update_browsing_state(initial_state) self.main_window.toggle_landing_page(enabled=False) return open_status