mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 19:13:07 +02: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
1 changed files with 3 additions and 1 deletions
|
|
@ -204,9 +204,11 @@ def view_folder(self, *args):
|
|||
return
|
||||
if not self._view_check(len(rows)):
|
||||
return
|
||||
for row in rows:
|
||||
for i, row in enumerate(rows):
|
||||
path = self.gui.library_view.model().db.abspath(row.row())
|
||||
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_):
|
||||
path = self.gui.library_view.model().db.abspath(id_, index_is_id=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue