Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow selecting entries on create #98

Open
wants to merge 2 commits into
base: testing/fabric/1.19.x/early_port_3
Choose a base branch
from

Conversation

vacla
Copy link
Contributor

@vacla vacla commented Sep 4, 2022

No description provided.

@@ -50,6 +50,7 @@ protected void updateWidgetPositions()
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