mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-04 04:52:09 +08:00
fix settings buttons not disabling if started with ignition on
old-commit-hash: 1c952e75b58b1733742644a3d77bf57cc7d1818f
This commit is contained in:
@@ -318,6 +318,9 @@ void SettingsWindow::showEvent(QShowEvent *event) {
|
||||
nav_btns->buttons()[0]->setChecked(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
SettingsWindow::SettingsWindow(QWidget *parent) : QFrame(parent) {
|
||||
|
||||
// setup two main layouts
|
||||
QVBoxLayout *sidebar_layout = new QVBoxLayout();
|
||||
|
||||
@@ -52,7 +52,7 @@ class SettingsWindow : public QFrame {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SettingsWindow(QWidget *parent = 0) : QFrame(parent) {};
|
||||
explicit SettingsWindow(QWidget *parent = 0);
|
||||
|
||||
protected:
|
||||
void hideEvent(QHideEvent *event) override;
|
||||
|
||||
Reference in New Issue
Block a user