Updated error message to provide help for import if 'Legacy Import/Export' is enabled (#3399)

* Updated error message to provide additional guidance for file import issues if Legacy Import/Export is enabled

Enhanced the error message from "Unable to read file. It probably requires a newer version of Anki to import." 
  to include a suggestion for users to try unchecking 'Legacy import/export Handling' under Preferences > Editing > 
  Import/Export if they encounter the issue.

* Update CONTRIBUTORS
This commit is contained in:
Gregory 2024-09-11 03:06:35 +08:00 committed by GitHub
parent 34809f2520
commit f496411da8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -189,6 +189,7 @@ Dillon Baldwin <https://github.com/DillBal>
Voczi <https://github.com/voczi>
Ben Nguyen <105088397+bpnguyen107@users.noreply.github.com>
Themis Demetriades <themis100@outlook.com>
Gregory Abrasaldo <degeemon@gmail.com>
********************

View file

@ -390,7 +390,7 @@ def importFile(mw: AnkiQt, file: str) -> None:
showWarning(invalidZipMsg())
except MediaMapInvalid:
showWarning(
"Unable to read file. It probably requires a newer version of Anki to import."
"Unable to read file. It probably requires a newer version of Anki to import. Try unchecking 'Legacy import/export Handling' under Preferences > Editing > Import/Export and see if the problem persists."
)
except V2ImportIntoV1:
showWarning(