| 160 | } |
| 161 | |
| 162 | QMessageBox::StandardButton badSteamReg(QWidget* parent, const QString& keyName, |
| 163 | const QString& valueName) |
| 164 | { |
| 165 | const auto details = |
| 166 | QString("can't start steam, registry value at '%1' is empty or doesn't exist") |
| 167 | .arg(keyName + "\\" + valueName); |
| 168 | |
| 169 | log::error("{}", details); |
| 170 | |
| 171 | return MOBase::TaskDialog(parent, QObject::tr("Cannot start Steam")) |
| 172 | .main(QObject::tr("Cannot start Steam")) |
| 173 | .content( |
| 174 | QObject::tr("The path to the Steam executable cannot be found. You might try " |
| 175 | "reinstalling Steam.")) |
| 176 | .details(details) |
| 177 | .icon(QMessageBox::Critical) |
| 178 | .button({QObject::tr("Continue without starting Steam"), |
| 179 | QObject::tr("The program may fail to launch."), QMessageBox::Yes}) |
| 180 | .button({QObject::tr("Cancel"), QMessageBox::Cancel}) |
| 181 | .exec(); |
| 182 | } |
| 183 | |
| 184 | QMessageBox::StandardButton startSteamFailed(QWidget* parent, const QString& keyName, |
| 185 | const QString& valueName, |
no test coverage detected