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

Method savePackIgnore

launcher/ui/dialogs/ExportInstanceDialog.cpp:468–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468void ExportInstanceDialog::savePackIgnore()
469{
470 auto data = proxyModel->blockedPaths().toStringList().join('\n').toUtf8();
471 auto filename = ignoreFileName();
472 try
473 {
474 FS::write(filename, data);
475 }
476 catch (const Exception &e)
477 {
478 qWarning() << e.cause();
479 }
480}
481
482#include "ExportInstanceDialog.moc"

Callers

nothing calls this directly

Calls 4

joinMethod · 0.80
toStringListMethod · 0.80
causeMethod · 0.80
writeFunction · 0.50

Tested by

no test coverage detected