mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 06:07:11 -05:00
fix page reload
This commit is contained in:
parent
6c9db9f8bd
commit
f083d95282
1 changed files with 4 additions and 1 deletions
|
|
@ -104,6 +104,9 @@ class AnkiQt(QMainWindow):
|
|||
def onSigInt(self, signum, frame):
|
||||
self.close()
|
||||
|
||||
def onReload(self):
|
||||
self.moveToState("auto")
|
||||
|
||||
def setupMainWindow(self):
|
||||
# main window
|
||||
self.mainWin = ankiqt.forms.main.Ui_MainWindow()
|
||||
|
|
@ -115,7 +118,7 @@ class AnkiQt(QMainWindow):
|
|||
self.help = ui.help.HelpArea(self.mainWin.helpFrame, self.config, self)
|
||||
self.connect(self.mainWin.mainText.pageAction(QWebPage.Reload),
|
||||
SIGNAL("activated()"),
|
||||
lambda: self.moveToState("auto"))
|
||||
self.onReload)
|
||||
# congrats
|
||||
self.connect(self.mainWin.learnMoreButton,
|
||||
SIGNAL("clicked()"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue