Update gallery_app.py

This commit is contained in:
2026-01-22 15:35:32 +01:00
parent d3b7f31730
commit cf1238bbff

View File

@@ -719,8 +719,14 @@ def build_header():
state.load_active_profile()
state.active_cat = "control" # Reset to default category
SorterEngine.clear_staging_area() # Clear staging for new profile
refresh_staged_info()
refresh_ui()
# Auto-load if source path exists
if os.path.exists(state.source_dir):
load_images()
else:
state.all_images = []
refresh_staged_info()
refresh_ui()
profile_select = ui.select(
list(state.profiles.keys()),