MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / addOverwriteActions

Method addOverwriteActions

src/modlistcontextmenu.cpp:360–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360void ModListContextMenu::addOverwriteActions(ModInfo::Ptr mod)
361{
362 if (QDir(mod->absolutePath()).count() > 2) {
363 addAction(tr("Sync to Mods..."), [=]() {
364 m_core.syncOverwrite();
365 });
366 addAction(tr("Create Mod..."), [=]() {
367 m_actions.createModFromOverwrite();
368 });
369 addAction(tr("Move content to Mod..."), [=]() {
370 m_actions.moveOverwriteContentToExistingMod();
371 });
372 addAction(tr("Clear Overwrite..."), [=]() {
373 m_actions.clearOverwrite();
374 });
375 }
376 addAction(tr("Open in Explorer"), [=]() {
377 m_actions.openExplorer(m_selected);
378 });
379}
380
381void ModListContextMenu::addSeparatorActions(ModInfo::Ptr mod)
382{

Callers

nothing calls this directly

Calls 8

QDirClass · 0.85
countMethod · 0.80
syncOverwriteMethod · 0.80
clearOverwriteMethod · 0.80
openExplorerMethod · 0.80
absolutePathMethod · 0.45

Tested by

no test coverage detected