예제 #1
0
 def _closeWindow(self) -> None:
     self._cleanup_preview()
     self.editor.cleanup()
     saveSplitter(self.form.splitter, "editor3")
     saveGeom(self, "editor")
     saveState(self, "editor")
     saveHeader(self.form.tableView.horizontalHeader(), "editor")
     self.teardownHooks()
     self.mw.maybeReset()
     aqt.dialogs.markClosed("Browser")
     self._closeEventHasCleanedUp = True
     self.mw.deferred_delete_and_garbage_collect(self)
     self.close()
예제 #2
0
 def closeEvent(self, evt):
     saveSplitter(self.form.splitter_2, "editor2")
     saveSplitter(self.form.splitter, "editor3")
     self.editor.saveNow()
     self.editor.setNote(None)
     saveGeom(self, "editor")
     saveState(self, "editor")
     saveHeader(self.form.tableView.horizontalHeader(), "editor")
     self.col.conf['activeCols'] = self.model.activeCols
     self.hide()
     aqt.dialogs.close("Browser")
     self.teardownHooks()
     self.mw.maybeReset()
     evt.accept()
예제 #3
0
 def closeEvent(self, evt):
     saveSplitter(self.form.splitter_2, "editor2")
     saveSplitter(self.form.splitter, "editor3")
     self.editor.saveNow()
     self.editor.setNote(None)
     saveGeom(self, "editor")
     saveState(self, "editor")
     saveHeader(self.form.tableView.horizontalHeader(), "editor")
     self.col.conf['activeCols'] = self.model.activeCols
     self.hide()
     aqt.dialogs.close("Browser")
     self.teardownHooks()
     self.mw.maybeReset()
     evt.accept()
예제 #4
0
 def cleanup(self):
     remHook("reset", self.onReset)
     self.browser.organizer = None
     saveGeom(self, "organizer")
     saveHeader(self.hh, "organizer")
예제 #5
0
파일: table.py 프로젝트: mark-stone/anki
 def _save_header(self) -> None:
     saveHeader(self._view.horizontalHeader(),
                self._state.config_key_prefix)
예제 #6
0
 def _save_header(self) -> None:
     saveHeader(self._view.horizontalHeader(),
                self._state.GEOMETRY_KEY_PREFIX)