summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCacheView.cpp
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-04-07 20:57:52 -0400
committerMason Reed <mason@vector35.com>2025-04-07 21:11:17 -0400
commitf3f43af65e86b6b9b8a40b33a694efa1779616fe (patch)
tree6268549b8503f923b6340e8b81d767c1611b9de1 /view/sharedcache/core/SharedCacheView.cpp
parenta976ebde53b234a1f6caf95c3258d2477fda17e2 (diff)
[SharedCache] Allow the user to select the original shared cache file on disk
This gives the user the ability to take a database with no original file path continue processing entries with the user supplied base file. This also will set the original file path for future loads, we might want to make that optional. And the behavior with remote projects for that might be undesired.
Diffstat (limited to 'view/sharedcache/core/SharedCacheView.cpp')
-rw-r--r--view/sharedcache/core/SharedCacheView.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/view/sharedcache/core/SharedCacheView.cpp b/view/sharedcache/core/SharedCacheView.cpp
index 00caddd2..4ba44cc7 100644
--- a/view/sharedcache/core/SharedCacheView.cpp
+++ b/view/sharedcache/core/SharedCacheView.cpp
@@ -792,14 +792,8 @@ bool SharedCacheView::Init()
if (!result)
{
- // TODO: Prompt the user to select the primary cache file? We can still recover from here.
// Oh no, we failed to process the cache, this likely means the primary on-disk file was not able to be found.
logger->LogError("Failed to process cache, likely missing cache files.");
- // NOTE: An interaction handler headlessly could select yes to this, however for the purposes of this we will just let them continue by defualt.
- if (IsUIEnabled() && ShowMessageBox("Continue opening", "This shared cache file was unable to be processed, would you like to open without shared cache information?", YesNoButtonSet, QuestionIcon) != YesButton)
- return false;
- // Skip all the other shared cache stuff.
- return true;
}
// If we can't store all of our files for this cache in the accessor cache we might run into issues, warn the user.