Update gallery_app.py
This commit is contained in:
@@ -719,6 +719,12 @@ def build_header():
|
|||||||
state.load_active_profile()
|
state.load_active_profile()
|
||||||
state.active_cat = "control" # Reset to default category
|
state.active_cat = "control" # Reset to default category
|
||||||
SorterEngine.clear_staging_area() # Clear staging for new profile
|
SorterEngine.clear_staging_area() # Clear staging for new profile
|
||||||
|
|
||||||
|
# Auto-load if source path exists
|
||||||
|
if os.path.exists(state.source_dir):
|
||||||
|
load_images()
|
||||||
|
else:
|
||||||
|
state.all_images = []
|
||||||
refresh_staged_info()
|
refresh_staged_info()
|
||||||
refresh_ui()
|
refresh_ui()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user