Locking tabs when not ready yet

This commit is contained in:
Lenni0451 2023-01-07 12:46:42 +01:00
parent 8dd9d0032c
commit 2b76d000c4

View File

@ -66,11 +66,14 @@ public class ViaProxyUI extends JFrame {
this.tabs.add(field.get()); this.tabs.add(field.get());
tab.add(this.contentPane); tab.add(this.contentPane);
}); });
this.contentPane.setEnabledAt(1, false);
} }
public void setReady() { public void setReady() {
for (AUITab tab : this.tabs) tab.setReady(); for (AUITab tab : this.tabs) tab.setReady();
for (int i = 0; i < this.contentPane.getTabCount(); i++) this.contentPane.setEnabledAt(i, true);
} }
public void openURL(final String url) { public void openURL(final String url) {