Merge branch 'error-log-to-file-twice' into 'master'

Draft: app: allow saving to file multiple times in Error console

Closes #10828

See merge request GNOME/gimp!1465
This commit is contained in:
Anders Jonsson 2025-06-29 10:27:32 +02:00
commit 08b2529263

View file

@ -90,6 +90,8 @@ error_console_save_cmd_callback (GimpAction *action,
return;
}
console->save_selection = selection;
if (! console->file_dialog)
{
GtkWidget *dialog;
@ -109,8 +111,6 @@ error_console_save_cmd_callback (GimpAction *action,
GTK_RESPONSE_CANCEL,
-1);
console->save_selection = selection;
g_set_weak_pointer (&console->file_dialog, dialog);
gtk_window_set_screen (GTK_WINDOW (dialog),
@ -201,5 +201,5 @@ error_console_save_response (GtkWidget *dialog,
g_object_unref (file);
}
gtk_widget_destroy (dialog);
gtk_widget_set_visible (dialog, FALSE);
}