| 283 | } |
| 284 | |
| 285 | QMessageBox::StandardButton |
| 286 | confirmStartSteam(QWidget* parent, const SpawnParameters& sp, const QString& details) |
| 287 | { |
| 288 | const auto title = QObject::tr("Launch Steam"); |
| 289 | const auto mainText = QObject::tr("This program requires Steam"); |
| 290 | const auto content = QObject::tr( |
| 291 | "Mod Organizer has detected that this program likely requires Steam to be " |
| 292 | "running to function properly."); |
| 293 | |
| 294 | return MOBase::TaskDialog(parent, title) |
| 295 | .main(mainText) |
| 296 | .content(content) |
| 297 | .details(details) |
| 298 | .icon(QMessageBox::Question) |
| 299 | .button({QObject::tr("Start Steam"), QMessageBox::Yes}) |
| 300 | .button({QObject::tr("Continue without starting Steam"), |
| 301 | QObject::tr("The program might fail to run."), QMessageBox::No}) |
| 302 | .button({QObject::tr("Cancel"), QMessageBox::Cancel}) |
| 303 | .remember("steamQuery", sp.binary.fileName()) |
| 304 | .exec(); |
| 305 | } |
| 306 | |
| 307 | QMessageBox::StandardButton confirmRestartAsAdminForSteam(QWidget* parent, |
| 308 | const SpawnParameters& sp) |
no test coverage detected