feat: improve preview

This commit is contained in:
Benexl
2025-07-22 18:46:15 +03:00
parent 3092ef0887
commit 43174db8e4
11 changed files with 122 additions and 14 deletions

View File

@@ -146,6 +146,15 @@ class Session:
elif next_step == ControlFlow.BACK:
if len(self._history) > 1:
self._history.pop()
elif next_step == ControlFlow.BACKX2:
if len(self._history) > 2:
self._history.pop()
self._history.pop()
elif next_step == ControlFlow.BACKX3:
if len(self._history) > 3:
self._history.pop()
self._history.pop()
self._history.pop()
elif next_step == ControlFlow.CONFIG_EDIT:
self._edit_config()
else: