mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
cloudstorage: fix onClose (#14711)
This commit is contained in:
@@ -878,7 +878,7 @@ end
|
||||
|
||||
function CloudStorage:onClose()
|
||||
local download_dir = self.cs_settings:readSetting("download_dir") or G_reader_settings:readSetting("lastdir")
|
||||
local fc = self.ui.file_chooser
|
||||
local fc = self.ui and self.ui.file_chooser
|
||||
if fc and fc.path == download_dir then
|
||||
fc:refreshPath()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user