Skip to content

Commit

Permalink
[fix] ReaderUI Pass self in open with cancel callback
Browse files Browse the repository at this point in the history
I added a call to self in ReaderUI:showFileManager() in koreader#4720, breaking this singular reference that wasn't passing self.

Reporter on Gitter by @ptrm, see https://gitter.im/koreader/koreader?at=5c81465725e4e24c072f1a00
  • Loading branch information
Frenzie committed Mar 7, 2019
1 parent 52300ff commit 39ab882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/apps/reader/readerui.lua
Expand Up @@ -448,7 +448,7 @@ function ReaderUI:showReader(file, provider)
doc_settings:close()
self:showReaderCoroutine(file, provider)
end,
cancel_callback = self.showFileManager,
cancel_callback = function() self:showFileManager() end,
})
else
self:showReaderCoroutine(file, provider)
Expand Down

0 comments on commit 39ab882

Please sign in to comment.