mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
show warning instead of crashing when recording on darwin-arm64
This commit is contained in:
parent
83af294a8c
commit
dc56b43c32
1 changed files with 4 additions and 0 deletions
|
@ -711,6 +711,10 @@ class RecordDialog(QDialog):
|
|||
def record_audio(
|
||||
parent: QWidget, mw: aqt.AnkiQt, encode: bool, on_done: Callable[[str], None]
|
||||
) -> None:
|
||||
if sys.platform.startswith("darwin") and platform.machine() == "arm64":
|
||||
showWarning("Recording currently only works in Anki's Intel build")
|
||||
return
|
||||
|
||||
def after_record(path: str) -> None:
|
||||
if not encode:
|
||||
on_done(path)
|
||||
|
|
Loading…
Reference in a new issue