Fix clearing the current search when clicking the change terminal size button (#240)

Co-authored-by: MCTBL <30978504+MCTBL@users.noreply.github.com>
This commit is contained in:
AlexdoruandMCTBL authored and GitHub committed 2024-11-17 12:51:48 +00:00
1 parent e48073976d
commit 8b4ab1ba61
2 files changed
+3

No files matched your search

@@ -71,6 +71,7 @@ import appeng.util.Platform;
import appeng.util.item.AEItemStack;
import cpw.mods.fml.common.Loader;
// TODO why is this copy pasting all the UI code from AE2 instead of reusing it ???
public class GuiInterfaceWireless extends FCBaseMEGui implements IDropToFillTextField, IInterfaceTerminalPostUpdate {
public static final int HEADER_HEIGHT = 52;
@@ -70,6 +70,7 @@ import appeng.util.item.AEItemStack;
import codechicken.nei.LayoutManager;
import codechicken.nei.util.TextHistory;
// TODO why is this copy pasting all the UI code from AE2 instead of reusing it ???
public abstract class FCGuiMonitor<T extends IAEStack<T>> extends FCBaseMEGui
implements ISortSource, IConfigManagerHost, IDropToFillTextField {
@@ -161,6 +162,7 @@ public abstract class FCGuiMonitor<T extends IAEStack<T>> extends FCBaseMEGui
}
iBtn.set(next);
if (next.getClass() == SearchBoxMode.class || next.getClass() == TerminalStyle.class) {
memoryText = this.searchField.getText();
this.reInitalize();
}
}