MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / handleClearScreenshotsButton

Method handleClearScreenshotsButton

launcher/ui/pages/instance/StoragePage.cpp:98–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void StoragePage::handleClearScreenshotsButton()
99{
100 if (m_confirmation_box->exec() != QMessageBox::Yes)
101 return;
102
103 auto path = m_inst->gameRoot() + "/screenshots";
104 QDir(path).removeRecursively();
105 updateCalculations();
106}
107
108void StoragePage::handleClearLogsButton()
109{

Callers

nothing calls this directly

Calls 3

QDirClass · 0.50
execMethod · 0.45
gameRootMethod · 0.45

Tested by

no test coverage detected