mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-18 11:22:03 +08:00
cabana: better window title for live streaming (#27214)
better title for live streaming
This commit is contained in:
@@ -267,7 +267,11 @@ void MainWindow::loadDBCFromFingerprint() {
|
||||
|
||||
remindSaveChanges();
|
||||
auto fingerprint = can->carFingerprint();
|
||||
video_dock->setWindowTitle(tr("ROUTE: %1 FINGERPINT: %2").arg(can->routeName()).arg(fingerprint.isEmpty() ? tr("Unknown Car") : fingerprint));
|
||||
if (can->liveStreaming()) {
|
||||
video_dock->setWindowTitle(can->routeName());
|
||||
} else {
|
||||
video_dock->setWindowTitle(tr("ROUTE: %1 FINGERPINT: %2").arg(can->routeName()).arg(fingerprint.isEmpty() ? tr("Unknown Car") : fingerprint));
|
||||
}
|
||||
if (!fingerprint.isEmpty()) {
|
||||
auto dbc_name = fingerprint_to_dbc[fingerprint];
|
||||
if (dbc_name != QJsonValue::Undefined) {
|
||||
|
||||
Reference in New Issue
Block a user