mirror of
https://github.com/mimblewimble/grin.git
synced 2025-05-10 19:21:16 +03:00
display chain type on tui title bar (#3336)
This commit is contained in:
parent
5b825fbf0d
commit
e7d2c71ca6
1 changed files with 3 additions and 2 deletions
|
@ -39,6 +39,7 @@ use crate::servers::Server;
|
|||
use crate::tui::constants::{ROOT_STACK, VIEW_BASIC_STATUS, VIEW_MINING, VIEW_PEER_SYNC};
|
||||
use crate::tui::types::{TUIStatusListener, UIMessage};
|
||||
use crate::tui::{logs, menu, mining, peers, status, version};
|
||||
use grin_core::global;
|
||||
use grin_util::logger::LogEntry;
|
||||
|
||||
pub struct UI {
|
||||
|
@ -98,9 +99,9 @@ impl UI {
|
|||
let mut title_string = StyledString::new();
|
||||
title_string.append(StyledString::styled(
|
||||
format!(
|
||||
"Grin Version {} (proto: {})",
|
||||
"Grin Version {} [{:?}]",
|
||||
built_info::PKG_VERSION,
|
||||
Server::protocol_version()
|
||||
global::get_chain_type()
|
||||
),
|
||||
Color::Dark(BaseColor::Green),
|
||||
));
|
||||
|
|
Loading…
Add table
Reference in a new issue