mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
fix reversed check in media
This commit is contained in:
parent
41a5f4eb4e
commit
5f0ef85044
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ class MediaManager(object):
|
|||
nfcFile = unicodedata.normalize("NFC", file)
|
||||
# we enforce NFC fs encoding on non-macs; on macs we'll have gotten
|
||||
# NFD so we use the above variable for comparing references
|
||||
if not isMac and local:
|
||||
if not isMac and not local:
|
||||
if file != nfcFile:
|
||||
# delete if we already have the NFC form, otherwise rename
|
||||
if os.path.exists(nfcFile):
|
||||
|
|
Loading…
Reference in a new issue