Fixed Reader and Writers GUIs still displaying channels even if not connected, fixes #1452
This commit is contained in:
@@ -16,7 +16,7 @@ public interface IGuiReaderWriter {
|
||||
|
||||
INetwork getNetwork();
|
||||
|
||||
boolean canUpdate();
|
||||
boolean isActive();
|
||||
|
||||
default void onAdd(String name) {
|
||||
INetwork network = getNetwork();
|
||||
|
||||
@@ -195,6 +195,6 @@ public class GuiReaderWriter extends GuiBase {
|
||||
}
|
||||
|
||||
private List<String> getChannels() {
|
||||
return readerWriter.canUpdate() ? CHANNELS : Collections.emptyList();
|
||||
return readerWriter.isActive() ? CHANNELS : Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user