Skip to content

Commit

Permalink
Fix error when book settings don't exist yet
Browse files Browse the repository at this point in the history
  • Loading branch information
Billiam committed Jan 5, 2025
1 parent 42e11cf commit 4237cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ function HardcoverApp:startReadCache()
end

Trapper:wrap(function()
local book_settings = self.settings:readBookSettings(self.ui.document.file)
local book_settings = self.settings:readBookSettings(self.ui.document.file) or {}
--logger.warn("HARDCOVER", book_settings)
if book_settings.book_id and not self.state.book_status.id then
if self.settings:syncEnabled() then
Expand Down

0 comments on commit 4237cc2

Please sign in to comment.