mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-01 22:19:49 +08:00
DevicePanel: fix dangling reference to params (#23154)
old-commit-hash: 6e25ae9798
This commit is contained in:
@@ -105,8 +105,6 @@ TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) {
|
||||
}
|
||||
|
||||
DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
|
||||
Params params = Params();
|
||||
|
||||
setSpacing(50);
|
||||
addItem(new LabelControl("Dongle ID", getDongleId().value_or("N/A")));
|
||||
addItem(new LabelControl("Serial", params.get("HardwareSerial").c_str()));
|
||||
|
||||
@@ -47,6 +47,9 @@ private slots:
|
||||
void poweroff();
|
||||
void reboot();
|
||||
void updateCalibDescription();
|
||||
|
||||
private:
|
||||
Params params;
|
||||
};
|
||||
|
||||
class TogglesPanel : public ListWidget {
|
||||
|
||||
Reference in New Issue
Block a user