Fixed: Popup now disappear if the scene change

This commit is contained in:
rubenpirreram
2026-05-21 09:06:31 +02:00
parent 9d1aa51afe
commit 6e96459152
@@ -601,6 +601,12 @@ public class MainFXMLController {
if(!isNowFocused)
popup.hide();
});
mainScene.getWindow().sceneProperty().addListener((obs, oldScene, newScene) -> {
if(newScene!=mainScene)
{
popup.hide();
}
});
}
private void showPopup() {