diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-07-27 09:40:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-27 09:40:31 +0200 |
commit | bdec11c501a6438706f62465d89f2344f7856342 (patch) | |
tree | 16cc5e2b4a6d4b778ed2d1ea7132af805a3a4d4a /launcher | |
parent | 928e18b66dbee8ea4b245416206a9e73427ce0f1 (diff) | |
parent | 4a9ea832ff63a3f1f6f779b35b8a7a3e705fc6a3 (diff) | |
download | PrismLauncher-bdec11c501a6438706f62465d89f2344f7856342.tar.gz PrismLauncher-bdec11c501a6438706f62465d89f2344f7856342.tar.bz2 PrismLauncher-bdec11c501a6438706f62465d89f2344f7856342.zip |
Merge pull request #1437 from LostLuma/instance-export-ignore-caches-2
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/ui/dialogs/ExportInstanceDialog.cpp | 2 | ||||
-rw-r--r-- | launcher/ui/dialogs/ExportPackDialog.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/launcher/ui/dialogs/ExportInstanceDialog.cpp b/launcher/ui/dialogs/ExportInstanceDialog.cpp index d1a69b93..d6a503cc 100644 --- a/launcher/ui/dialogs/ExportInstanceDialog.cpp +++ b/launcher/ui/dialogs/ExportInstanceDialog.cpp @@ -70,6 +70,8 @@ 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->ignoreFilesWithPath().insert( + { FS::PathCombine(prefix, ".cache"), FS::PathCombine(prefix, ".fabric"), FS::PathCombine(prefix, ".quilt") }); loadPackIgnore(); ui->treeView->setModel(proxyModel); diff --git a/launcher/ui/dialogs/ExportPackDialog.cpp b/launcher/ui/dialogs/ExportPackDialog.cpp index 2abe2805..ad8db5ff 100644 --- a/launcher/ui/dialogs/ExportPackDialog.cpp +++ b/launcher/ui/dialogs/ExportPackDialog.cpp @@ -61,7 +61,7 @@ ExportPackDialog::ExportPackDialog(InstancePtr instance, QWidget* parent, ModPla // use the game root - everything outside cannot be exported const QDir root(instance->gameRoot()); proxy = new FileIgnoreProxy(instance->gameRoot(), this); - proxy->ignoreFilesWithPath().insert({ "logs", "crash-reports" }); + proxy->ignoreFilesWithPath().insert({ "logs", "crash-reports", ".cache", ".fabric", ".quilt" }); proxy->ignoreFilesWithName().append({ ".DS_Store", "thumbs.db", "Thumbs.db" }); proxy->setSourceModel(model); |