mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-30 19:33:49 +08:00
params: code cleanup (#22744)
* cleanup params
* apply review
* continue
* use c_str
* cleanup filelock
* don't check return code of close()
* remove call_once
* cleanup params_pyx
* cleanup comment
old-commit-hash: 2773ff5ace
This commit is contained in:
@@ -227,8 +227,7 @@ SoftwarePanel::SoftwarePanel(QWidget* parent) : ListWidget(parent) {
|
||||
|
||||
fs_watch = new QFileSystemWatcher(this);
|
||||
QObject::connect(fs_watch, &QFileSystemWatcher::fileChanged, [=](const QString path) {
|
||||
int update_failed_count = params.get<int>("UpdateFailedCount").value_or(0);
|
||||
if (path.contains("UpdateFailedCount") && update_failed_count > 0) {
|
||||
if (path.contains("UpdateFailedCount") && std::atoi(params.get("UpdateFailedCount").c_str()) > 0) {
|
||||
lastUpdateLbl->setText("failed to fetch update");
|
||||
updateBtn->setText("CHECK");
|
||||
updateBtn->setEnabled(true);
|
||||
|
||||
Reference in New Issue
Block a user