mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Revert "add signatures to calling code"
This reverts commit 441e279f6d
.
Pytype does catch the mentioned error without the extra annotations.
This commit is contained in:
parent
441e279f6d
commit
2155e93bad
2 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ class AnkiQt(QMainWindow):
|
||||||
self.col: Optional[_Collection] = None
|
self.col: Optional[_Collection] = None
|
||||||
aqt.mw = self
|
aqt.mw = self
|
||||||
self.app = app
|
self.app = app
|
||||||
self.pm: ProfileManager = profileManager
|
self.pm = profileManager
|
||||||
# init rest of app
|
# init rest of app
|
||||||
self.safeMode = self.app.queryKeyboardModifiers() & Qt.ShiftModifier
|
self.safeMode = self.app.queryKeyboardModifiers() & Qt.ShiftModifier
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -216,11 +216,11 @@ Not currently enabled; click the sync button in the main window to enable."""))
|
||||||
# Basic & Advanced Options
|
# Basic & Advanced Options
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
def setupOptions(self) -> None:
|
def setupOptions(self):
|
||||||
self.form.pastePNG.setChecked(self.prof.get("pastePNG", False))
|
self.form.pastePNG.setChecked(self.prof.get("pastePNG", False))
|
||||||
self.form.uiScale.setValue(self.mw.pm.uiScale()*100)
|
self.form.uiScale.setValue(self.mw.pm.uiScale()*100)
|
||||||
|
|
||||||
def updateOptions(self) -> None:
|
def updateOptions(self):
|
||||||
self.prof['pastePNG'] = self.form.pastePNG.isChecked()
|
self.prof['pastePNG'] = self.form.pastePNG.isChecked()
|
||||||
newScale = self.form.uiScale.value()/100
|
newScale = self.form.uiScale.value()/100
|
||||||
if newScale != self.mw.pm.uiScale():
|
if newScale != self.mw.pm.uiScale():
|
||||||
|
|
Loading…
Reference in a new issue