Fix the WebEgine data path warning (#4824)

This commit is contained in:
Paul Johnson
2026-02-10 16:36:26 +00:00
committed by GitHub
parent 950fe84922
commit 6acfbabdd3

View File

@@ -1981,6 +1981,11 @@ MainWindow::loadCompleted(QString name, Context *context)
// clear splash - progress whilst loading tab
//clearSplash();
// setup the WebEngine paths
QString temp = const_cast<AthleteDirectoryStructure*>(context->athlete->directoryStructure())->temp().absolutePath();
context->webEngineProfile->setCachePath(temp);
context->webEngineProfile->setPersistentStoragePath(temp);
// first tab
athletetabs.insert(currentAthleteTab->context->athlete->home->root().dirName(), currentAthleteTab);