diff options
author | LostLuma <lilly@lostluma.net> | 2023-07-26 03:08:38 +0200 |
---|---|---|
committer | LostLuma <lilly@lostluma.net> | 2023-07-26 04:23:01 +0200 |
commit | 361583edfcf7e647b7bdf6ba9b82dd810a50b845 (patch) | |
tree | 24c5f6915ca7a2cdce2de0fcc3c142fa68ba41ee /launcher/ui/dialogs/ExportInstanceDialog.cpp | |
parent | 4f000122688a0967d9d7df95d7ebb9241b284d53 (diff) | |
download | PrismLauncher-361583edfcf7e647b7bdf6ba9b82dd810a50b845.tar.gz PrismLauncher-361583edfcf7e647b7bdf6ba9b82dd810a50b845.tar.bz2 PrismLauncher-361583edfcf7e647b7bdf6ba9b82dd810a50b845.zip |
Ignore cache files when exporting instances
Signed-off-by: LostLuma <lilly@lostluma.net>
Diffstat (limited to 'launcher/ui/dialogs/ExportInstanceDialog.cpp')
-rw-r--r-- | launcher/ui/dialogs/ExportInstanceDialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/launcher/ui/dialogs/ExportInstanceDialog.cpp b/launcher/ui/dialogs/ExportInstanceDialog.cpp index d1a69b93..f17a5779 100644 --- a/launcher/ui/dialogs/ExportInstanceDialog.cpp +++ b/launcher/ui/dialogs/ExportInstanceDialog.cpp @@ -70,6 +70,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); |