mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-18 15:52:09 +08:00
cabana: Prevent dialog that load autosaved file from blocking replay->start() (#28558)
old-commit-hash: 4891a234e2ccca943998387cb3f0246e98b63667
This commit is contained in:
@@ -373,7 +373,8 @@ void MainWindow::eventsMerged() {
|
||||
if (!dbc()->msgCount() && !car_fingerprint.isEmpty()) {
|
||||
auto dbc_name = fingerprint_to_dbc[car_fingerprint];
|
||||
if (dbc_name != QJsonValue::Undefined) {
|
||||
loadDBCFromOpendbc(dbc_name.toString());
|
||||
// Prevent dialog that load autosaved file from blocking replay->start().
|
||||
QTimer::singleShot(0, [dbc_name, this]() { loadDBCFromOpendbc(dbc_name.toString()); });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user