fix: avoid hard-code the size of the settings dialog

This commit is contained in:
Gary Wang 2023-06-18 22:54:41 +08:00
parent a29a1806a3
commit c51ec4bd5d
No known key found for this signature in database
GPG Key ID: 5D30A4F15EA78760

View File

@ -85,7 +85,7 @@ SettingsDialog::SettingsDialog(QWidget *parent)
Settings::instance()->setInitWindowSizeBehavior(_iws_options.at(index).first);
});
this->setMinimumSize(300, 120); // not sure why it complain "Unable to set geometry"
adjustSize();
setWindowFlag(Qt::WindowContextHelpButtonHint, false);
}