mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
fix the problem with replay routes locally (#24350)
fix: fix the problem with replay routes locally
Co-authored-by: Anton Rudomaneko <anton.rudomanenko@nami.ru>
old-commit-hash: 3bfe4a691c
This commit is contained in:
committed by
GitHub
parent
6059fe131b
commit
f69d9c7326
@@ -77,7 +77,11 @@ bool Route::loadFromLocal() {
|
||||
}
|
||||
|
||||
void Route::addFileToSegment(int n, const QString &file) {
|
||||
const QString name = QUrl(file).fileName();
|
||||
QString name = QUrl(file).fileName();
|
||||
|
||||
const int pos = name.lastIndexOf("--");
|
||||
name = pos != -1 ? name.mid(pos + 2) : name;
|
||||
|
||||
if (name == "rlog.bz2") {
|
||||
segments_[n].rlog = file;
|
||||
} else if (name == "qlog.bz2") {
|
||||
|
||||
Reference in New Issue
Block a user