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

Method handleClearLogsButton

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

Source from the content-addressed store, hash-verified

106}
107
108void StoragePage::handleClearLogsButton()
109{
110 if (m_confirmation_box->exec() != QMessageBox::Yes)
111 return;
112
113 auto path = m_inst->gameRoot() + "/logs";
114 QDir(path).removeRecursively();
115 updateCalculations();
116}
117
118void StoragePage::handleClearAllButton()
119{

Callers

nothing calls this directly

Calls 3

QDirClass · 0.50
execMethod · 0.45
gameRootMethod · 0.45

Tested by

no test coverage detected