mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-11 11:47:41 -05:00
Fix windows being created when constructing ProgressDialog
This commit is contained in:
@@ -249,7 +249,6 @@ ProgressDialog::ProgressDialog(QWidget *parent, bool showSkip)
|
||||
"AdvSceneSwitcher.twitchCategories.fetchStart")))
|
||||
{
|
||||
setWindowTitle(obs_module_text("AdvSceneSwitcher.windowTitle"));
|
||||
_skipFetchCheckBox->setVisible(showSkip);
|
||||
auto layout = new QVBoxLayout(this);
|
||||
layout->addWidget(_status);
|
||||
auto cancelButton = new QPushButton(
|
||||
@@ -264,6 +263,7 @@ ProgressDialog::ProgressDialog(QWidget *parent, bool showSkip)
|
||||
QWidget::connect(cancelButton, &QPushButton::clicked, this,
|
||||
[this]() { _skipFetch ? accept() : reject(); });
|
||||
|
||||
_skipFetchCheckBox->setVisible(showSkip);
|
||||
if (_skipFetch) {
|
||||
accept();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user