mirror of
https://github.com/koreader/koreader.git
synced 2025-12-24 12:14:05 +01:00
cre progress meter: avoid some warning with unit tests (#5464)
Quick fix for some warnings shown in unit tests output, see https://github.com/koreader/koreader/pull/5406#issuecomment-540059452
This commit is contained in:
@@ -997,7 +997,9 @@ local ENGINE_PROGRESS_INITIAL_DELAY = TimeVal:new{ sec = 2 }
|
||||
local ENGINE_PROGRESS_UPDATE_DELAY = TimeVal:new{ usec = 500000 }
|
||||
|
||||
function ReaderRolling:showEngineProgress(percent)
|
||||
if G_reader_settings:isFalse("cre_show_progress") then
|
||||
if G_reader_settings and G_reader_settings:isFalse("cre_show_progress") then
|
||||
-- (G_reader_settings might not be available when this is called
|
||||
-- in the context of unit tests.)
|
||||
-- This may slow things down too much with SDL over SSH,
|
||||
-- so allow disabling it.
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user