MCPcopy Create free account
hub / github.com/MultiMC/Launcher / on_actionViewSelectedModsFolder_triggered

Method on_actionViewSelectedModsFolder_triggered

launcher/ui/MainWindow.cpp:1787–1799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1785}
1786
1787void MainWindow::on_actionViewSelectedModsFolder_triggered()
1788{
1789 if (m_selectedInstance)
1790 {
1791 QString str = m_selectedInstance->modsRoot();
1792 if (!FS::ensureFilePathExists(str))
1793 {
1794 // TODO: report error
1795 return;
1796 }
1797 DesktopServices::openDirectory(QDir(str).absolutePath());
1798 }
1799}
1800
1801void MainWindow::closeEvent(QCloseEvent *event)
1802{

Callers

nothing calls this directly

Calls 4

ensureFilePathExistsFunction · 0.85
openDirectoryFunction · 0.85
QDirClass · 0.50
modsRootMethod · 0.45

Tested by

no test coverage detected