mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-14 19:44:05 +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: 2773ff5aceb8874a9319c819ec3707705a00604d
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