13
0

RegionFX: fix hiding RFx GUI when removing regions

This commit is contained in:
Robin Gareus 2024-08-31 02:52:54 +02:00
parent aa5dbdd770
commit b13f04c61e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -987,7 +987,7 @@ RegionEditor::RegionFxBox::show_plugin_gui (std::weak_ptr<RegionFxPlugin> wfx, b
rfx->set_window_proxy (pwp); rfx->set_window_proxy (pwp);
WM::Manager::instance ().register_window (pwp); WM::Manager::instance ().register_window (pwp);
RegionView* rv = PublicEditor::instance ().regionview_from_region (_region); RegionView* rv = PublicEditor::instance ().regionview_from_region (_region);
rv->RegionViewGoingAway.connect_same_thread (*pwp, [pwp] (RegionView*) { pwp->hide (); }); rv->RegionViewGoingAway.connect_same_thread (*pwp, [pwp, rv] (RegionView* srv) { if (rv == srv) { pwp->hide (); }});
} }
pwp->set_custom_ui_mode (custom_ui); pwp->set_custom_ui_mode (custom_ui);