disconnected console title clean-up
This commit is contained in:
parent
538dfe9881
commit
46a1a2a66b
|
@ -119,10 +119,17 @@ public class MainFrame {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setTitle() {
|
private void setTitle() {
|
||||||
String disconnected = ConnectionStatusLogic.INSTANCE.isConnected() ? "" : "DISCONNECTED ";
|
String consoleVersion = "Console " + Launcher.CONSOLE_VERSION;
|
||||||
BinaryProtocol bp = consoleUI.uiContext.getLinkManager().getCurrentStreamState();
|
String frameTitle;
|
||||||
String signature = bp == null ? "not loaded" : bp.signature;
|
if (ConnectionStatusLogic.INSTANCE.isConnected()) {
|
||||||
frame.getFrame().setTitle(disconnected + "Console " + Launcher.CONSOLE_VERSION + "; firmware=" + Launcher.firmwareVersion.get() + "@" + consoleUI.getPort() + " " + signature);
|
BinaryProtocol bp = consoleUI.uiContext.getLinkManager().getCurrentStreamState();
|
||||||
|
String signature = bp == null ? "not loaded" : bp.signature;
|
||||||
|
frameTitle = consoleVersion + "; firmware=" + Launcher.firmwareVersion.get() + "@" + consoleUI.getPort() + " " + signature;
|
||||||
|
frame.getFrame().setTitle(frameTitle);
|
||||||
|
} else {
|
||||||
|
frameTitle = "DISCONNECTED " + consoleVersion;
|
||||||
|
}
|
||||||
|
frame.getFrame().setTitle(frameTitle);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void windowClosedHandler() {
|
private void windowClosedHandler() {
|
||||||
|
|
Loading…
Reference in New Issue