[StatusBar] Allow status bars to be repainted if they are not covered (#9768)

This commit is contained in:
zwim authored and GitHub committed 2022-11-20 05:33:44 +01:00
1 parent 81b2f22b04
commit 486d7071c7
13 files changed
+67 -55

No files matched your search

@@ -70,7 +70,7 @@ function ReaderDeviceStatus:init()
UIManager:close(self.memory_confirm_box)
end
if Device:canRestart() then
if UIManager:getTopWidget() == "ReaderUI"
if UIManager:getNthTopWidget().name == "ReaderUI"
and G_reader_settings:isTrue("device_status_memory_auto_restart") then
UIManager:show(InfoMessage:new{
text = _("High memory usage!\n\nKOReader is restarting…"),