mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:58:51 +02:00
Merge pull request #6816 from ctrlaltdavid/20772
Don't use cache when use load script "from Disk" button
This commit is contained in:
commit
8619be28ef
1 changed files with 1 additions and 1 deletions
|
@ -4591,7 +4591,7 @@ void Application::loadDialog() {
|
||||||
QString fileNameString = QFileDialog::getOpenFileName(
|
QString fileNameString = QFileDialog::getOpenFileName(
|
||||||
_glWidget, tr("Open Script"), "", tr("JavaScript Files (*.js)"));
|
_glWidget, tr("Open Script"), "", tr("JavaScript Files (*.js)"));
|
||||||
if (!fileNameString.isEmpty()) {
|
if (!fileNameString.isEmpty()) {
|
||||||
DependencyManager::get<ScriptEngines>()->loadScript(fileNameString);
|
DependencyManager::get<ScriptEngines>()->loadScript(fileNameString, true, false, false, true); // Don't load from cache
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue