Skip to content

Commit

Permalink
Temporarily turn off I/O support
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dae committed Aug 19, 2023
1 parent cdcd9bc commit 70506ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion qt/aqt/addcards.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def __init__(self, mw: AnkiQt) -> None:
add_close_shortcut(self)
self._load_new_note()
self.setupButtons()
self.col.add_image_occlusion_notetype()
self.history: list[NoteId] = []
self._last_added_note: Optional[Note] = None
gui_hooks.operation_did_execute.append(self.on_operation_did_execute)
Expand Down
6 changes: 1 addition & 5 deletions qt/aqt/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from anki.consts import MODEL_CLOZE
from anki.hooks import runFilter
from anki.httpclient import HttpClient
from anki.models import StockNotetype
from anki.notes import Note, NoteFieldsCheckResult
from anki.utils import checksum, is_lin, is_win, namedtmp
from aqt import AnkiQt, colors, gui_hooks
Expand Down Expand Up @@ -572,10 +571,7 @@ def oncallback(arg: Any) -> None:
)

def current_notetype_is_image_occlusion(self) -> bool:
return bool(self.note) and (
self.note.note_type().get("originalStockKind", None)
== StockNotetype.OriginalStockKind.ORIGINAL_STOCK_KIND_IMAGE_OCCLUSION
)
return False

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

0 comments on commit 70506ae

Please sign in to comment.