Skip to content

Conversation

@vacla
Copy link
Contributor

@vacla vacla commented Sep 4, 2022

No description provided.

protected void onConfirm()
{
this.consumer.accept(this.getListWidget().getSelectedEntries());
this.closeScreenOrShowParent();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be done here, as it would cause any screen the Consumer had already opened to be closed again immediately. The Consumer should be left to close it if needed, or in some cases it would have probably opened some other screen already at this point (like with the Material List screen in Litematica: https://github.com/maruohon/litematica/blob/644dc94978b3900eaa39964097cac092402df6b0/src/main/java/fi/dy/masa/litematica/materials/MaterialListUtils.java#L164-L183).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants