Undo commit e11b8c8. book-details links should appear in the special window (no search links, etc) even if in the current library. The LibraryBroker deals with not opening the database twice.

This might be worth a point release. See https://www.mobileread.com/forums/showthread.php?p=4312453#post4312453 and later.
This commit is contained in:
Charles Haley 2023-04-07 10:08:30 +01:00
parent 4c0961c1c0
commit 24626ceb0d

View File

@ -28,8 +28,6 @@ class ShowBookDetailsAction(InterfaceAction):
library_path = kwargs.get('library_path', None) library_path = kwargs.get('library_path', None)
book_id = kwargs.get('book_id', None) book_id = kwargs.get('book_id', None)
library_id = kwargs.get('library_id', None) library_id = kwargs.get('library_id', None)
if library_path is not None and self.gui.library_broker.is_gui_library(library_path):
library_path = library_id = None
query = kwargs.get('query', None) query = kwargs.get('query', None)
index = self.gui.library_view.currentIndex() index = self.gui.library_view.currentIndex()
if self.gui.current_view() is not self.gui.library_view and not library_path: if self.gui.current_view() is not self.gui.library_view and not library_path: