TagStudioDev / TagStudio

A User-Focused Photo & File Management System
https://docs.tagstud.io/
GNU General Public License v3.0
4.81k stars 359 forks source link

[Bug]: nav_forward button causes error when used. #413

Open D4nDude opened 2 weeks ago

D4nDude commented 2 weeks ago

Checklist

TagStudio Version

Alpha v9.3.2

Operating System & Version

Windows 10

Description

When attempting to use the nav_forward button in the UI, the function errors with the following error:

The function errors and does not update the UI, however the UI continues with its main loop. When trying to use the nav_backward button it functions as normal and lets you move backwards in tabs.

Expected Behavior

When clicking the nav_forward button, the UI should advance to the next page.

Steps to Reproduce

Method 1:

  1. Open TagStudio and do not load a library.
  2. Click the nav_forward button.

Method 2:

  1. Load a library.
  2. Click nav_forward.

Logs

Traceback (most recent call last): File "C:\dev\TagStudio/tagstudio\src\qt\ts_qt.py", line 1008, in nav_forward self.update_thumbs() File "C:\dev\TagStudio/tagstudio\src\qt\ts_qt.py", line 1218, in update_thumbs if i < len(self.nav_frames[self.cur_frame_idx].contents): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: object of type 'bool' has no len()

yedpodtrzitko commented 2 weeks ago

fixed in #332