Remove this down to ensure reset

This commit is contained in:
Ellpeck 2016-11-08 23:52:31 +01:00
parent 3ad1da0a8c
commit c471f19f87

View file

@ -323,11 +323,6 @@ public final class BookletUtils{
@SideOnly(Side.CLIENT) @SideOnly(Side.CLIENT)
public static void openIndexEntry(GuiBooklet booklet, IBookletEntry entry, int page, boolean resetTextField){ public static void openIndexEntry(GuiBooklet booklet, IBookletEntry entry, int page, boolean resetTextField){
if(resetTextField){
booklet.searchField.setText("");
updateSearchBar(booklet);
}
if(booklet.currentEntrySet.getCurrentPage() != null){ if(booklet.currentEntrySet.getCurrentPage() != null){
booklet.currentEntrySet.getCurrentPage().onClosed(booklet); booklet.currentEntrySet.getCurrentPage().onClosed(booklet);
} }
@ -370,6 +365,11 @@ public final class BookletUtils{
} }
} }
if(resetTextField){
booklet.searchField.setText("");
updateSearchBar(booklet);
}
booklet.shouldSaveDataNextClose = true; booklet.shouldSaveDataNextClose = true;
} }