Skip to content

Commit 4653eb2

Browse files
authored
fix: ensure initial browsing state uses UI values (#1008)
1 parent 940617c commit 4653eb2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tagstudio/qt/ts_qt.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,12 @@ def _init_library(self, path: Path, open_status: LibraryStatus):
17601760
self.main_window.preview_panel.set_selection(self.selected)
17611761

17621762
# page (re)rendering, extract eventually
1763-
self.update_browsing_state()
1763+
initial_state = BrowsingState(
1764+
page_index=0,
1765+
sorting_mode=self.main_window.sorting_mode,
1766+
ascending=self.main_window.sorting_direction,
1767+
)
1768+
self.update_browsing_state(initial_state)
17641769

17651770
self.main_window.toggle_landing_page(enabled=False)
17661771
return open_status

0 commit comments

Comments
 (0)