Split popup opening from instantiation, allows reopening
This commit is contained in:
@@ -41,6 +41,7 @@ public class GuiYesNoPopup extends AbstractGuiPopup<GuiYesNoPopup> {
|
||||
GuiYesNoPopup popup = new GuiYesNoPopup(container).setBackgroundColor(Colors.DARK_TRANSPARENT)
|
||||
.setLayer(container.getMaxLayer() + 1);
|
||||
popup.getInfo().addElements(new VerticalLayout.Data(0.5), info);
|
||||
popup.open();
|
||||
return popup;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user