File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change 3131from anki .consts import MODEL_CLOZE
3232from anki .hooks import runFilter
3333from anki .httpclient import HttpClient
34- from anki .models import StockNotetype
3534from anki .notes import Note , NoteFieldsCheckResult
3635from anki .utils import checksum , is_lin , is_win , namedtmp
3736from 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."
You can’t perform that action at this time.
0 commit comments