mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
Merge pull request #657 from BlueGreenMagick/prof-name
don't allow addons21 as profile name
This commit is contained in:
commit
26330da119
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