Skip to content

Commit

Permalink
Merge pull request #1520 from HEXRD/clear-recent-images-if-not-in-state
Browse files Browse the repository at this point in the history
If recent images are not in state, clear them
  • Loading branch information
psavery authored Jun 26, 2023
2 parents f605751 + 2c397a1 commit d8c867d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hexrd/ui/hexrd_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ def set_overlays():
# Thus, set the overlays later.
QTimer.singleShot(0, set_overlays)

if '_recent_images' not in state:
self._recent_images.clear()

self.recent_images_changed.emit()

@property
Expand Down

0 comments on commit d8c867d

Please sign in to comment.