Skip to content

Commit

Permalink
AppManager: add open to clear OFX Plugin cache at launch
Browse files Browse the repository at this point in the history
  • Loading branch information
devernay committed Jul 11, 2021
1 parent 5f25abe commit 43d7930
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Engine/AppManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,12 @@ AppManager::loadInternalAfterInitGui(const CLArgs& cl)
_imp->restoreCaches();
}

setLoadingStatus( tr("Loading plugin cache...") );
if (cl.isOpenFXCacheClearRequestedOnLaunch()) {
setLoadingStatus( tr("Clearing the OpenFX Plugins cache...") );
clearPluginsLoadedCache();
} else {
setLoadingStatus( tr("Loading plugin cache...") );
}


///Set host properties after restoring settings since it depends on the host name.
Expand Down
1 change: 1 addition & 0 deletions Tests/wmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ GTEST_API_ int main(int argc, char **argv)
int argc = 0;
QStringList args;
args << QString::fromUtf8("--clear-cache");
args << QString::fromUtf8("--clear-openfx-cache");
args << QString::fromUtf8("--no-settings");
CLArgs cl(args, true);
if (!manager.load(argc, 0, cl)) {
Expand Down

0 comments on commit 43d7930

Please sign in to comment.