mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 20:30:05 +00:00
Add radar site to window title
This commit is contained in:
parent
316c0a325f
commit
abd87c9c21
1 changed files with 5 additions and 0 deletions
|
|
@ -1217,6 +1217,9 @@ void MainWindowImpl::UpdateRadarSite()
|
|||
|
||||
if (radarSite != nullptr)
|
||||
{
|
||||
mainWindow_->setWindowTitle(
|
||||
tr("Supercell Wx - %1").arg(QString::fromStdString(radarSite->id())));
|
||||
|
||||
mainWindow_->ui->radarSiteValueLabel->setVisible(true);
|
||||
mainWindow_->ui->radarLocationLabel->setVisible(true);
|
||||
|
||||
|
|
@ -1228,6 +1231,8 @@ void MainWindowImpl::UpdateRadarSite()
|
|||
}
|
||||
else
|
||||
{
|
||||
mainWindow_->setWindowTitle(tr("Supercell Wx"));
|
||||
|
||||
mainWindow_->ui->radarSiteValueLabel->setVisible(false);
|
||||
mainWindow_->ui->radarLocationLabel->setVisible(false);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue