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:
1 parent
2a39bd15b3
commit
c2dbd7bf88
1 file changed
+2
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user