mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Timeout when opening multiple book folders on OS X. See #1263426 (open containing folder doesn't open all folders)
This commit is contained in:
parent
9658af0fe3
commit
6d2029b0f2
@ -204,9 +204,11 @@ class ViewAction(InterfaceAction):
|
|||||||
return
|
return
|
||||||
if not self._view_check(len(rows)):
|
if not self._view_check(len(rows)):
|
||||||
return
|
return
|
||||||
for row in rows:
|
for i, row in enumerate(rows):
|
||||||
path = self.gui.library_view.model().db.abspath(row.row())
|
path = self.gui.library_view.model().db.abspath(row.row())
|
||||||
open_local_file(path)
|
open_local_file(path)
|
||||||
|
if isosx and i < len(rows) - 1:
|
||||||
|
time.sleep(0.1) # Finder cannot handle multiple folder opens
|
||||||
|
|
||||||
def view_folder_for_id(self, id_):
|
def view_folder_for_id(self, id_):
|
||||||
path = self.gui.library_view.model().db.abspath(id_, index_is_id=True)
|
path = self.gui.library_view.model().db.abspath(id_, index_is_id=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user