MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / removeItems

Method removeItems

launcher/ui/pages/instance/ModFolderPage.cpp:184–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void ModFolderPage::removeItems(const QItemSelection& selection)
185{
186 if (m_instance != nullptr && m_instance->isRunning()) {
187 auto response = CustomMessageBox::selectable(this, tr("Confirm Delete"),
188 tr("If you remove mods while the game is running it may crash your game.\n"
189 "Are you sure you want to do this?"),
190 QMessageBox::Warning, QMessageBox::Yes | QMessageBox::No, QMessageBox::No)
191 ->exec();
192
193 if (response != QMessageBox::Yes)
194 return;
195 }
196 m_model->deleteMods(selection.indexes());
197}
198
199void ModFolderPage::installMods()
200{

Callers

nothing calls this directly

Calls 4

selectableFunction · 0.85
deleteModsMethod · 0.80
isRunningMethod · 0.45
execMethod · 0.45

Tested by

no test coverage detected