plug-ins: make GimpUi global when imported from a local scope.

This fixes Spyro Plus not running interactively after commit a7f02d4ee1.
Note that this seems to be the only plug-in which got broken by this
commit AFAICS.
This commit is contained in:
Jehan 2026-02-21 12:19:29 +01:00
parent 68b231cdf8
commit 3b9b300252

View file

@ -2358,6 +2358,7 @@ class SpyrogimpPlusPlugin(Gimp.PlugIn):
elif run_mode == Gimp.RunMode.INTERACTIVE:
gi.require_version('GimpUi', '3.0')
global GimpUi
from gi.repository import GimpUi
Gegl.init (None)