Skip to content

Commit 70506ae

Browse files
committed
Temporarily turn off I/O support
Aristotelis has asked for a bit more time to work on it, and this unlocks a new beta/stable release. Will revert this commit after the release is out.
1 parent cdcd9bc commit 70506ae

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

qt/aqt/addcards.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def __init__(self, mw: AnkiQt) -> None:
5151
add_close_shortcut(self)
5252
self._load_new_note()
5353
self.setupButtons()
54-
self.col.add_image_occlusion_notetype()
5554
self.history: list[NoteId] = []
5655
self._last_added_note: Optional[Note] = None
5756
gui_hooks.operation_did_execute.append(self.on_operation_did_execute)

qt/aqt/editor.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from anki.consts import MODEL_CLOZE
3232
from anki.hooks import runFilter
3333
from anki.httpclient import HttpClient
34-
from anki.models import StockNotetype
3534
from anki.notes import Note, NoteFieldsCheckResult
3635
from anki.utils import checksum, is_lin, is_win, namedtmp
3736
from aqt import AnkiQt, colors, gui_hooks
@@ -572,10 +571,7 @@ def oncallback(arg: Any) -> None:
572571
)
573572

574573
def current_notetype_is_image_occlusion(self) -> bool:
575-
return bool(self.note) and (
576-
self.note.note_type().get("originalStockKind", None)
577-
== StockNotetype.OriginalStockKind.ORIGINAL_STOCK_KIND_IMAGE_OCCLUSION
578-
)
574+
return False
579575

580576
def _save_current_note(self) -> None:
581577
"Call after note is updated with data from webview."

0 commit comments

Comments
 (0)