mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
FM select mode: let the icon survive through reinit not only rotation
This commit is contained in:
committed by
Frans de Jonge
parent
0508014c1b
commit
87dbb9885e
@@ -59,9 +59,6 @@ function FileManager:onSetRotationMode(rotation)
|
||||
Screen:setRotationMode(rotation)
|
||||
if FileManager.instance then
|
||||
self:reinit(self.path, self.focused_file)
|
||||
if self.select_mode then
|
||||
self.title_bar:setRightIcon("check")
|
||||
end
|
||||
end
|
||||
end
|
||||
return true
|
||||
@@ -810,6 +807,9 @@ function FileManager:reinit(path, focused_file)
|
||||
-- looks unnecessary (cheap with classic mode, less cheap with
|
||||
-- CoverBrowser plugin's cover image renderings)
|
||||
-- self:onRefresh()
|
||||
if self.select_mode then
|
||||
self.title_bar:setRightIcon("check")
|
||||
end
|
||||
end
|
||||
|
||||
function FileManager:getCurrentDir()
|
||||
|
||||
Reference in New Issue
Block a user