mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 14:00:43 +02:00
Don't ask about differences over after the user has said no -- until the external file changes again.
This commit is contained in:
parent
d59d5549a1
commit
0cbddb217c
1 changed files with 10 additions and 7 deletions
|
@ -224,7 +224,8 @@ void ScriptEditorWidget::onWindowActivated() {
|
|||
if (!_isReloading) {
|
||||
_isReloading = true;
|
||||
|
||||
if (QFileInfo(_currentScript).lastModified() > _currentScriptModified) {
|
||||
QDateTime fileStamp = QFileInfo(_currentScript).lastModified();
|
||||
if (fileStamp > _currentScriptModified) {
|
||||
bool doReload = false;
|
||||
auto window = static_cast<ScriptEditorWindow*>(this->parent()->parent()->parent());
|
||||
window->inModalDialog = true;
|
||||
|
@ -245,6 +246,8 @@ void ScriptEditorWidget::onWindowActivated() {
|
|||
setRunning(false);
|
||||
// Script is restarted once current script instance finishes.
|
||||
}
|
||||
} else {
|
||||
_currentScriptModified = fileStamp; // Asked and answered. Don't ask again until the external file is changed again.
|
||||
}
|
||||
}
|
||||
_isReloading = false;
|
||||
|
|
Loading…
Reference in a new issue