mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-08-09 17:49:45 +00:00
welcome_dialog: remove weird window close event
This commit is contained in:
parent
d34b3190f7
commit
6228dff809
1 changed files with 9 additions and 12 deletions
|
@ -49,21 +49,18 @@ welcome_dialog::welcome_dialog(std::shared_ptr<gui_settings> gui_settings, bool
|
||||||
)"
|
)"
|
||||||
).arg(gui::utils::get_link_style()));
|
).arg(gui::utils::get_link_style()));
|
||||||
|
|
||||||
connect(ui->i_have_read, &QCheckBox::clicked, [this, is_manual_show](bool checked)
|
if (!is_manual_show)
|
||||||
{
|
{
|
||||||
if (is_manual_show)
|
connect(ui->i_have_read, &QCheckBox::clicked, [this](bool checked)
|
||||||
{
|
{
|
||||||
return;
|
ui->okay->setEnabled(checked);
|
||||||
}
|
});
|
||||||
|
|
||||||
ui->okay->setEnabled(checked);
|
connect(ui->do_not_show, &QCheckBox::clicked, [this](bool checked)
|
||||||
setWindowFlag(Qt::WindowCloseButtonHint, checked);
|
{
|
||||||
});
|
m_gui_settings->SetValue(gui::ib_show_welcome, QVariant(!checked));
|
||||||
|
});
|
||||||
connect(ui->do_not_show, &QCheckBox::clicked, [this](bool checked)
|
}
|
||||||
{
|
|
||||||
m_gui_settings->SetValue(gui::ib_show_welcome, QVariant(!checked));
|
|
||||||
});
|
|
||||||
|
|
||||||
connect(ui->okay, &QPushButton::clicked, this, &QDialog::accept);
|
connect(ui->okay, &QPushButton::clicked, this, &QDialog::accept);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue