mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix library names becoming full paths when user is logged in
This commit is contained in:
parent
f1d24fc349
commit
04d4cb923c
@ -116,7 +116,7 @@ class LibraryBroker(object):
|
||||
def allowed_libraries(self, filter_func):
|
||||
with self:
|
||||
allowed_names = filter_func(os.path.basename(l) for l in self.lmap.itervalues())
|
||||
return OrderedDict(((lid, path) for lid, path in self.lmap.iteritems() if os.path.basename(path) in allowed_names))
|
||||
return OrderedDict(((lid, self.library_map[lid]) for lid, path in self.lmap.iteritems() if os.path.basename(path) in allowed_names))
|
||||
|
||||
def __enter__(self):
|
||||
self.lock.acquire()
|
||||
|
Loading…
x
Reference in New Issue
Block a user