Terminal: Don't refresh while input widget closed

Fixes crash on e.g. closing widget after "sleep 3 && echo -e '\eY11'"
This commit is contained in:
mbays authored and Frans de Jonge committed 2024-08-31 23:38:37 +02:00
1 parent 2a39bd15b3
commit c2dbd7bf88
1 file changed
+2
+2
View File
@@ -443,6 +443,7 @@ function Terminal:generateInputDialog()
self.history = self.history:sub(1, #self.history - 1)
end
UIManager:unschedule(Terminal.refresh)
UIManager:close(self.input_dialog)
if self.touchmenu_instance then
self.touchmenu_instance:updateItems()
@@ -452,6 +453,7 @@ function Terminal:generateInputDialog()
choice2_callback = function()
self.history = ""
self:killShell()
UIManager:unschedule(Terminal.refresh)
UIManager:close(self.input_dialog)
if self.touchmenu_instance then
self.touchmenu_instance:updateItems()