MCPcopy Create free account
hub / github.com/ElyPrismLauncher/Launcher / undoTrashInstance

Method undoTrashInstance

launcher/ui/MainWindow.cpp:1290–1297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1288}
1289
1290void MainWindow::undoTrashInstance()
1291{
1292 if (!APPLICATION->instances()->undoTrashInstance())
1293 QMessageBox::warning(
1294 this, tr("Failed to undo trashing instance"),
1295 tr("Some instances and shortcuts could not be restored.\nPlease check your trashbin to manually restore them."));
1296 ui->actionUndoTrashInstance->setEnabled(APPLICATION->instances()->trashedSomething());
1297}
1298
1299void MainWindow::on_actionViewLauncherRootFolder_triggered()
1300{

Callers

nothing calls this directly

Calls 3

instancesMethod · 0.80
setEnabledMethod · 0.80
trashedSomethingMethod · 0.80

Tested by

no test coverage detected