mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
don't allow addons21 as profile name
because addons21 and profiles directory are stored in same directory
This commit is contained in:
parent
63201d450d
commit
7df3c9f0b1
1 changed files with 2 additions and 2 deletions
|
@ -265,8 +265,8 @@ class AnkiQt(QMainWindow):
|
|||
# will be shown again
|
||||
self.loadProfile(self.profileDiag.closeWithoutQuitting)
|
||||
|
||||
def profileNameOk(self, str):
|
||||
return not checkInvalidFilename(str)
|
||||
def profileNameOk(self, name: str) -> bool:
|
||||
return not checkInvalidFilename(name) and name != "addons21"
|
||||
|
||||
def onAddProfile(self):
|
||||
name = getOnlyText(_("Name:")).strip()
|
||||
|
|
Loading…
Reference in a new issue