Keep plugin-preset dialog on top of plugin-UI

This commit is contained in:
Robin Gareus
2021-09-04 18:42:50 +02:00
parent e057088195
commit cc32201e9c

View File

@@ -726,6 +726,12 @@ PlugUIBase::add_plugin_setting ()
{
NewPluginPresetDialog d (plugin, _("New Preset"));
Window* win = dynamic_cast<Window*> (_bypass_button.get_toplevel ());
d.set_keep_above (true);
if (win) {
d.set_transient_for (*win);
}
switch (d.run ()) {
case Gtk::RESPONSE_ACCEPT:
if (d.name().empty()) {