Commit c08cf411 authored by Jehan's avatar Jehan

plug-ins: only check non-defaut parameters in non-interactive mode.

Otherwise default values are not taken into account in interactive mode.
In particular, we want ignore-hidden to be checked (TRUE) by default,
because this is the most obvious behavior (WYSIWYG).
parent d03de527
......@@ -714,7 +714,8 @@ init_vals (const gchar *name,
image = param[SA_IMAGE].data.d_int32;
file_name = param[SA_FILENAME].data.d_string;
if (nparams == SA_ARG_COUNT)
if (*run_mode == GIMP_RUN_NONINTERACTIVE &&
nparams == SA_ARG_COUNT)
optimize.apply_masks = param[SA_APPLY_MASKS].data.d_int32;
optimize.vectorize = param[SA_VECTORIZE].data.d_int32;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment