Keep call metrics visible outside settings on both clients

This commit is contained in:
evgeny committed 2026-10-15 12:06:27 +02:00
1 parent 7d75afd4c5
commit 1b07a8a708
2 files changed
+11 -6

No files matched your search

+4 -4
View File
@@ -360,7 +360,7 @@ void CallWindow::setPeerName(const QString& name) {
void CallWindow::setBgpPath(const QString& path) {
m_bgpPathLabel->setText(path);
m_bgpPathLabel->setVisible(!path.isEmpty() && m_settingsBtn->isChecked());
m_bgpPathLabel->setVisible(m_state == Active && !path.isEmpty());
}
void CallWindow::setConnectionType(uint8_t type, quint64 nextHop) {
@@ -438,8 +438,8 @@ void CallWindow::updateVideoPresentation() {
}
bool active = m_state == Active, settings = active && m_settingsBtn->isChecked();
m_localPreview->setVisible(active && !receiving && !m_localImage.isNull());
m_connectionLabel->setVisible(settings); m_bgpPathLabel->setVisible(settings && !m_bgpPathLabel->text().isEmpty());
m_statsLabel->setVisible(settings && !m_statsLabel->text().isEmpty());
m_connectionLabel->setVisible(active); m_bgpPathLabel->setVisible(active && !m_bgpPathLabel->text().isEmpty());
m_statsLabel->setVisible(active && !m_statsLabel->text().isEmpty());
m_videoEnabled->setVisible(active); m_settingsBtn->setVisible(active);
m_videoControls->setVisible(settings); m_showVideoBtn->setVisible(receiving);
m_videoStatus->setVisible(active && !m_videoStatus->text().isEmpty());
@@ -511,5 +511,5 @@ void CallWindow::setAudioStats(int rtt, int buffer, int tempo, int dropped, int
"ms\nBuffer drops: %7 · Underruns: %8")
.arg(buffer).arg(reserve).arg(minimum).arg(maximum)
.arg(tempo / 100.0, 0, 'f', 2).arg(rtt).arg(dropped).arg(underruns));
m_statsLabel->setVisible(m_state == Active && m_settingsBtn->isChecked());
m_statsLabel->setVisible(m_state == Active);
}