Allow warning dialogs to be the dismiss-only variant

All existing dialogs are either QUESTION or WARNING.

Allow INFO, ERROR and OTHER to remember being dismissed without asking a
question.
This commit is contained in:
Simon Arlott 2023-06-05 20:17:37 +01:00
parent ac2511bd5a
commit 76b2575848
No known key found for this signature in database
GPG Key ID: DF001BFD83E75990

View File

@ -749,18 +749,12 @@ gnc_dialog_run (GtkDialog *dialog, const gchar *pref_name)
return response;
/* Add in the checkboxes to find out if the answer should be remembered. */
#if 0
if (GTK_IS_MESSAGE_DIALOG(dialog))
{
GtkMessageType type;
g_object_get(dialog, "message-type", &type, (gchar*)NULL);
ask = (type == GTK_MESSAGE_QUESTION);
ask = (type == GTK_MESSAGE_QUESTION || type == GTK_MESSAGE_WARNING);
}
else
{
ask = FALSE;
}
#endif
perm = gtk_check_button_new_with_mnemonic
(ask
? _("Remember and don't _ask me again.")