mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
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.
This commit is contained in:
parent
cdcd9bcce0
commit
70506aeb99
2 changed files with 1 additions and 6 deletions
|
@ -51,7 +51,6 @@ class AddCards(QMainWindow):
|
||||||
add_close_shortcut(self)
|
add_close_shortcut(self)
|
||||||
self._load_new_note()
|
self._load_new_note()
|
||||||
self.setupButtons()
|
self.setupButtons()
|
||||||
self.col.add_image_occlusion_notetype()
|
|
||||||
self.history: list[NoteId] = []
|
self.history: list[NoteId] = []
|
||||||
self._last_added_note: Optional[Note] = None
|
self._last_added_note: Optional[Note] = None
|
||||||
gui_hooks.operation_did_execute.append(self.on_operation_did_execute)
|
gui_hooks.operation_did_execute.append(self.on_operation_did_execute)
|
||||||
|
|
|
@ -31,7 +31,6 @@ from anki.collection import Config, SearchNode
|
||||||
from anki.consts import MODEL_CLOZE
|
from anki.consts import MODEL_CLOZE
|
||||||
from anki.hooks import runFilter
|
from anki.hooks import runFilter
|
||||||
from anki.httpclient import HttpClient
|
from anki.httpclient import HttpClient
|
||||||
from anki.models import StockNotetype
|
|
||||||
from anki.notes import Note, NoteFieldsCheckResult
|
from anki.notes import Note, NoteFieldsCheckResult
|
||||||
from anki.utils import checksum, is_lin, is_win, namedtmp
|
from anki.utils import checksum, is_lin, is_win, namedtmp
|
||||||
from aqt import AnkiQt, colors, gui_hooks
|
from aqt import AnkiQt, colors, gui_hooks
|
||||||
|
@ -572,10 +571,7 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
|
||||||
)
|
)
|
||||||
|
|
||||||
def current_notetype_is_image_occlusion(self) -> bool:
|
def current_notetype_is_image_occlusion(self) -> bool:
|
||||||
return bool(self.note) and (
|
return False
|
||||||
self.note.note_type().get("originalStockKind", None)
|
|
||||||
== StockNotetype.OriginalStockKind.ORIGINAL_STOCK_KIND_IMAGE_OCCLUSION
|
|
||||||
)
|
|
||||||
|
|
||||||
def _save_current_note(self) -> None:
|
def _save_current_note(self) -> None:
|
||||||
"Call after note is updated with data from webview."
|
"Call after note is updated with data from webview."
|
||||||
|
|
Loading…
Reference in a new issue