FrogPilot features - Error log button
This commit is contained in:
parent
e560b08376
commit
f7a408326e
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
#include <QProcess>
|
||||||
|
|
||||||
#include "common/params.h"
|
#include "common/params.h"
|
||||||
#include "common/util.h"
|
#include "common/util.h"
|
||||||
@ -95,6 +96,14 @@ SoftwarePanel::SoftwarePanel(QWidget* parent) : ListWidget(parent), scene(uiStat
|
|||||||
});
|
});
|
||||||
addItem(uninstallBtn);
|
addItem(uninstallBtn);
|
||||||
|
|
||||||
|
// error log button
|
||||||
|
auto errorLogBtn = new ButtonControl(tr("Error Log"), tr("VIEW"), tr("View the error log for openpilot crashes."));
|
||||||
|
connect(errorLogBtn, &ButtonControl::clicked, [=]() {
|
||||||
|
const std::string txt = util::read_file("/data/community/crashes/error.txt");
|
||||||
|
ConfirmationDialog::rich(QString::fromStdString(txt), this);
|
||||||
|
});
|
||||||
|
addItem(errorLogBtn);
|
||||||
|
|
||||||
fs_watch = new ParamWatcher(this);
|
fs_watch = new ParamWatcher(this);
|
||||||
QObject::connect(fs_watch, &ParamWatcher::paramChanged, [=](const QString ¶m_name, const QString ¶m_value) {
|
QObject::connect(fs_watch, &ParamWatcher::paramChanged, [=](const QString ¶m_name, const QString ¶m_value) {
|
||||||
updateLabels();
|
updateLabels();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user