olive-groves / butterfly_viewer

Side-by-side image viewer with synchronized zoom and sliding overlays. Drag and drop to instantly compare multiple images on your desktop. Very open source.
https://olive-groves.github.io/butterfly_viewer/
Other
22 stars 3 forks source link

[Bug] Crash when MultiViewMainWindow.updateRecentFileSettings called when SETTING_RECENTFILELIST is None #33

Closed larsmaxfield closed 3 months ago

larsmaxfield commented 6 months ago

When SETTING_RECENTFILELIST is None and updateRecentFileSettings is called (for example, on a fresh start), the following line throws TypeError: 'NoneType' object is not iterable:

files = list(settings.value(SETTING_RECENTFILELIST, []))
larsmaxfield commented 3 months ago

Fixed earlier in branch developer-lars in https://github.com/olive-groves/butterfly_viewer/commit/53fe7746124dddc2232b599fd5f296f89530958b. I didn't correctly tag this issue "#33" because I omitted the # in the commit.