mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 22:20:04 +00:00
Enable/disable auto update of radar data based on timeline selection
This commit is contained in:
parent
80f04be510
commit
4963add9cc
8 changed files with 129 additions and 39 deletions
|
|
@ -198,6 +198,22 @@ void AnimationDockWidget::UpdateAnimationState(types::AnimationState state)
|
|||
}
|
||||
}
|
||||
|
||||
void AnimationDockWidget::UpdateLiveState(bool isLive)
|
||||
{
|
||||
static const QString prefix = tr("Auto Update");
|
||||
static const QString disabled = tr("Disabled");
|
||||
static const QString enabled = tr("Enabled");
|
||||
|
||||
if (isLive)
|
||||
{
|
||||
ui->autoUpdateLabel->setText(QString("%1: %2").arg(prefix).arg(enabled));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui->autoUpdateLabel->setText(QString("%1: %2").arg(prefix).arg(disabled));
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace ui
|
||||
} // namespace qt
|
||||
} // namespace scwx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue