Qt ui: show open panel on startup (#20859)

* should work

* spaces
This commit is contained in:
grekiki
2021-05-09 07:24:22 +02:00
committed by GitHub
parent b0e2374635
commit 95e8c75ebd
+1
View File
@@ -309,6 +309,7 @@ void SettingsWindow::showEvent(QShowEvent *event) {
for (auto &[name, panel] : panels) {
QPushButton *btn = new QPushButton(name);
btn->setCheckable(true);
btn->setChecked(nav_btns->buttons().size() == 0);
btn->setStyleSheet(R"(
QPushButton {
color: grey;