MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / confirmStartSteam

Function confirmStartSteam

src/spawn.cpp:285–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285QMessageBox::StandardButton
286confirmStartSteam(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
307QMessageBox::StandardButton confirmRestartAsAdminForSteam(QWidget* parent,
308 const SpawnParameters& sp)

Callers 1

checkSteamFunction · 0.85

Calls 2

execMethod · 0.45
iconMethod · 0.45

Tested by

no test coverage detected