Show build version in app header
All checks were successful
Release App / release-app (push) Successful in 1m12s
All checks were successful
Release App / release-app (push) Successful in 1m12s
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <curses.h>
|
||||
|
||||
#include "app_ui.h"
|
||||
#include "build_config.h"
|
||||
#include "util.h"
|
||||
|
||||
namespace telegram_tui {
|
||||
@@ -88,7 +89,10 @@ void App::draw() {
|
||||
|
||||
attron(A_REVERSE);
|
||||
mvhline(header_y, 0, ' ', width);
|
||||
const std::string header_label = use_test_dc_ ? "shinoa [TEST DC]" : "shinoa";
|
||||
std::string header_label = std::string("shinoa ") + TELEGRAM_TUI_BUILD_VERSION;
|
||||
if (use_test_dc_) {
|
||||
header_label += " [TEST DC]";
|
||||
}
|
||||
mvprintw(header_y, 1, "%s", header_label.c_str());
|
||||
const std::string auth_label = authorized_ ? "ready" : current_auth_label();
|
||||
const int auth_x = std::max(1, width - static_cast<int>(auth_label.size()) - 2);
|
||||
|
||||
Reference in New Issue
Block a user