plug-ins: Allow Python GUI resources to be empty

Resolves #11772
While ba79fd00 fixed the number of
arguments in the resource arguments,
setting them to False prevented the GUI
from opening if the gradient wasn't set.
This patch switches the value to True to
fix the problem.
This commit is contained in:
Alx Sa 2024-07-07 19:19:16 +00:00
parent 86ef74ae95
commit d10a8c357f
4 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ class GradientsSaveAsCSS (Gimp.PlugIn):
Gimp.RunMode.NONINTERACTIVE,
GObject.ParamFlags.READWRITE)
procedure.add_gradient_argument ("gradient", _("_Gradient to use"),
"", False, GObject.ParamFlags.READWRITE)
"", True, GObject.ParamFlags.READWRITE)
procedure.add_file_argument ("file", _("_File"),
"", GObject.ParamFlags.READWRITE)
return procedure

View File

@ -57,7 +57,7 @@ class PaletteOffset (Gimp.PlugIn):
Gimp.RunMode.NONINTERACTIVE,
GObject.ParamFlags.READWRITE)
procedure.add_palette_argument ("palette", _("_Palette"),
_("Palette"), False,
_("Palette"), True,
GObject.ParamFlags.READWRITE)
procedure.add_int_argument ("amount", _("O_ffset"), _("Offset"),
1, GLib.MAXINT, 1, GObject.ParamFlags.READWRITE)

View File

@ -356,7 +356,7 @@ class PaletteSort (Gimp.PlugIn):
Gimp.RunMode.INTERACTIVE,
GObject.ParamFlags.READWRITE)
procedure.add_palette_argument ("palette", _("_Palette"),
_("Palette"), False,
_("Palette"), True,
GObject.ParamFlags.READWRITE)
selection_choice = Gimp.Choice.new()

View File

@ -145,7 +145,7 @@ class PaletteToGradient (Gimp.PlugIn):
Gimp.RunMode.NONINTERACTIVE,
GObject.ParamFlags.READWRITE)
procedure.add_palette_argument ("palette", _("_Palette"),
_("Palette"), False,
_("Palette"), True,
GObject.ParamFlags.READWRITE)
procedure.add_gradient_return_value ("new-gradient", _("The newly created gradient"),
_("The newly created gradient"),