mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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