Skip to content

Commit

Permalink
Save sidecar when in gimp mode
Browse files Browse the repository at this point in the history
If we call darktable as a gimp plugin in "file" mode we use the former history stack
but allow further darkroom developments to be done.

These changes are already written to the history database but,
the xmp sidecar should also be updated according to settings found via dt_image_get_xmp_mode()
  • Loading branch information
jenshannoschwalm authored and TurboGit committed Jan 16, 2025
1 parent 83f2702 commit 6f161e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,10 @@ static gboolean _gui_quit_callback(GtkWidget *widget,
dt_dev_write_history(darktable.develop);

if(dt_check_gimpmode_ok("file"))
{
darktable.gimp.error = !dt_export_gimp_file(darktable.gimp.imgid);
dt_image_write_sidecar_file(darktable.gimp.imgid);
}

dt_control_quit();
}
Expand All @@ -905,7 +908,10 @@ static void _quit_callback(dt_action_t *action)
{
dt_dev_write_history(darktable.develop);
if(dt_check_gimpmode_ok("file"))
{
darktable.gimp.error = !dt_export_gimp_file(darktable.gimp.imgid);
dt_image_write_sidecar_file(darktable.gimp.imgid);
}
}

dt_control_quit();
Expand Down

0 comments on commit 6f161e0

Please sign in to comment.