mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 18:27:23 +02:00
[components] ScriptEditor: Fix reset of the history index
This commit is contained in:
parent
ec98037338
commit
45c9c1796c
1 changed files with 2 additions and 2 deletions
|
@ -27,9 +27,9 @@ class ScriptEditorManager(QObject):
|
|||
|
||||
result = stdout.getvalue().strip()
|
||||
|
||||
# Add the script to the history and move up the index
|
||||
# Add the script to the history and move up the index to the top of history stack
|
||||
self._history.append(script)
|
||||
self._index = self._index + 1
|
||||
self._index = len(self._history)
|
||||
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue