mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 03:22:07 +08:00
DevicePanel: fix dangling reference to params (#23154)
old-commit-hash: 6e25ae9798bbdad55259333194b6f3c33679c475
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