sdl: resize FM (#6882)

Required after #6309.

Uses the same logic as in android (I cannot locate the PR right now). Tested on a mac.
reviewable/pr6885/r1
Martín Fernández 4 years ago committed by GitHub
parent 6cc0ab8dc9
commit d914476973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -254,6 +254,15 @@ function Device:init()
-- this triggers paged media like PDF and DjVu to redraw
-- CreDocument doesn't need it
UIManager:broadcastEvent(Event:new("RedrawCurrentPage"))
local FileManager = require("apps/filemanager/filemanager")
if FileManager.instance then
FileManager.instance:reinit(FileManager.instance.path,
FileManager.instance.focused_file)
UIManager:setDirty(FileManager.instance.banner, function()
return "ui", FileManager.instance.banner.dimen
end)
end
elseif ev.code == SDL_WINDOWEVENT_MOVED then
self.window.left = ev.value.data1
self.window.top = ev.value.data2

Loading…
Cancel
Save