diff options
| author | Pyraqq <46277816+Pyraqq@users.noreply.github.com> | 2021-12-23 23:53:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-23 16:53:26 -0600 |
| commit | 26851be53600483a4a35f14d7096ce85a64af97d (patch) | |
| tree | 663638dd5a0fa4de755ad181062b2d4827a206f7 /src | |
| parent | d9e69cca06ef98e6a0ea9bc22a990e735ee5a65f (diff) | |
Add version to window title (#613)
Also updated the translation files for missing strings and updated the Polish translation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lobby.cpp | 3 | ||||
| -rw-r--r-- | src/packet_distribution.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/lobby.cpp b/src/lobby.cpp index 08fcaae6..54e4c704 100644 --- a/src/lobby.cpp +++ b/src/lobby.cpp @@ -12,8 +12,9 @@ Lobby::Lobby(AOApplication *p_ao_app) : QMainWindow() { ao_app = p_ao_app; + // - this->setWindowTitle(tr("Attorney Online 2")); + this->setWindowTitle(tr("Attorney Online %1").arg(ao_app->applicationVersion())); this->setWindowIcon(QIcon(":/logo.png")); this->setWindowFlags( (this->windowFlags() | Qt::CustomizeWindowHint) & ~Qt::WindowMaximizeButtonHint); diff --git a/src/packet_distribution.cpp b/src/packet_distribution.cpp index bcbc6671..7d2eafc4 100644 --- a/src/packet_distribution.cpp +++ b/src/packet_distribution.cpp @@ -268,7 +268,7 @@ void AOApplication::server_packet_received(AOPacket *p_packet) courtroom_loaded = false; - window_title = tr("Attorney Online 2"); + window_title = tr("Attorney Online %1").arg(applicationVersion()); int selected_server = w_lobby->get_selected_server(); QString server_address = "", server_name = ""; |
