Skip to content

Commit

Permalink
Update filemanagerfilesearcher.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
hius07 authored Feb 22, 2025
1 parent 0c8c34f commit 4d3f4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/apps/filemanager/filemanagerfilesearcher.lua
Original file line number Diff line number Diff line change
Expand Up @@ -387,14 +387,14 @@ function FileSearcher:onMenuHold(item)
end

local buttons = {}
local book_props
local book_props, is_currently_opened
if is_file then
local has_provider = DocumentRegistry:hasProvider(file)
local been_opened = BookList.hasBookBeenOpened(file)
local doc_settings_or_file = file
if has_provider or been_opened then
book_props = self.ui.coverbrowser and self.ui.coverbrowser:getBookInfo(file)
local is_currently_opened = file == (self.ui.document and self.ui.document.file)
is_currently_opened = file == (self.ui.document and self.ui.document.file)
if is_currently_opened then
doc_settings_or_file = self.ui.doc_settings
if not book_props then
Expand Down

0 comments on commit 4d3f4ef

Please sign in to comment.