cloudstorage: fix onClose (#14711)

This commit is contained in:
hius07
2025-12-11 19:57:46 +02:00
committed by GitHub
parent f8175e34a4
commit 3882a22fb0

View File

@@ -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