Update gallery_app.py

This commit is contained in:
2026-01-20 13:53:51 +01:00
parent 48417b6d73
commit 2854907359

View File

@@ -112,6 +112,9 @@ def load_images():
ui.notify(f"Source not found: {state.source_dir}", type='warning') ui.notify(f"Source not found: {state.source_dir}", type='warning')
return return
# Clear staging area when loading a new folder
SorterEngine.clear_staging_area()
state.all_images = SorterEngine.get_images(state.source_dir, recursive=True) state.all_images = SorterEngine.get_images(state.source_dir, recursive=True)
# Restore previously saved tags for this folder # Restore previously saved tags for this folder