Ignore cache files when exporting instances

Signed-off-by: LostLuma <lilly@lostluma.net>
(cherry picked from commit 361583edfc)
This commit is contained in:
LostLuma 2023-07-26 03:08:38 +02:00 committed by github-actions[bot]
parent 88be40c4bf
commit 64228bdddf

View File

@ -66,6 +66,7 @@ ExportInstanceDialog::ExportInstanceDialog(InstancePtr instance, QWidget* parent
auto prefix = QDir(instance->instanceRoot()).relativeFilePath(instance->gameRoot());
proxyModel->ignoreFilesWithPath().insert({ FS::PathCombine(prefix, "logs"), FS::PathCombine(prefix, "crash-reports") });
proxyModel->ignoreFilesWithName().append({ ".DS_Store", "thumbs.db", "Thumbs.db" });
proxyModel->blockedPaths().insert({ FS::PathCombine(prefix, ".cache"), FS::PathCombine(prefix, ".fabric") });
loadPackIgnore();
ui->treeView->setModel(proxyModel);