Mon, 15 Dec 2014 01:47:40 +0200
- added a help message to the statusbar
sources/interface.cpp | file | annotate | diff | comparison | revisions |
--- a/sources/interface.cpp Mon Dec 15 01:41:06 2014 +0200 +++ b/sources/interface.cpp Mon Dec 15 01:47:40 2014 +0200 @@ -289,14 +289,14 @@ if (session == nullptr) { - text = "[DISCONNECTED]"; + text = ""; } else { switch (session->state()) { case RCON_DISCONNECTED: - text = "[DISCONNECTED]"; + text = "Disconnected."; break; case RCON_CONNECTING: @@ -320,6 +320,11 @@ } } + if (not text.is_empty()) + text += " | "; + + text += "^N to connect, ^Q to quit"; + if (text != g_statusBarText) { g_statusBarText = text;