mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-04 10:27:20 +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()
|
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._history.append(script)
|
||||||
self._index = self._index + 1
|
self._index = len(self._history)
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue