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
2024-08-18 18:06:06 +02:00
committed by Frans de Jonge
parent 2a39bd15b3
commit c2dbd7bf88

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()