ATLauncher: Abort install if optional mods dialog is closed
This matches the behaviour of ATLauncher.
This commit is contained in:
parent
54c26b05fa
commit
a6b13487f0
4 changed files with 13 additions and 5 deletions
|
@ -43,10 +43,13 @@ AtlUserInteractionSupportImpl::AtlUserInteractionSupportImpl(QWidget *parent) :
|
|||
{
|
||||
}
|
||||
|
||||
QVector<QString> AtlUserInteractionSupportImpl::chooseOptionalMods(ATLauncher::PackVersion version, QVector<ATLauncher::VersionMod> mods)
|
||||
std::optional<QVector<QString>> AtlUserInteractionSupportImpl::chooseOptionalMods(ATLauncher::PackVersion version, QVector<ATLauncher::VersionMod> mods)
|
||||
{
|
||||
AtlOptionalModDialog optionalModDialog(m_parent, version, mods);
|
||||
optionalModDialog.exec();
|
||||
auto result = optionalModDialog.exec();
|
||||
if (result == QDialog::Rejected) {
|
||||
return {};
|
||||
}
|
||||
return optionalModDialog.getResult();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue