Skip to content

Commit

Permalink
fix clearing the current search when clicking the change terminal siz…
Browse files Browse the repository at this point in the history
…e button
  • Loading branch information
Alexdoru committed Nov 12, 2024
1 parent 12ebe0b commit 1cc6098
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
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 {

Expand Down Expand Up @@ -161,6 +162,7 @@ protected void actionPerformed(final GuiButton btn) {
}
iBtn.set(next);
if (next.getClass() == SearchBoxMode.class || next.getClass() == TerminalStyle.class) {
memoryText = this.searchField.getText();
this.reInitalize();
}
}
Expand Down

0 comments on commit 1cc6098

Please sign in to comment.