1

version bump, fixing dock visibility

This commit is contained in:
Alex Yatskov 2011-10-07 20:04:46 -07:00
parent 9eccefb09e
commit ea07549a09
2 changed files with 8 additions and 1 deletions

View File

@ -16,7 +16,7 @@
constants = {
'version': '0.03b',
'version': '0.04b',
'urlUpdates': 'http://foosoft.net/projects/yomichan/dev/updates.xml',
'urlHomepage': 'https://github.com/FooSoft/yomichan/',

View File

@ -91,6 +91,8 @@ class MainWindowReader(QtGui.QMainWindow, Ui_MainWindowReader):
(self.textDefinitions, 'anchorClicked(const QUrl&)', self.onDefinitionsAnchorClicked),
(self.textDefinitionSearch, 'returnPressed()', self.onDefinitionSearchReturn),
(self.listDefinitions, 'itemDoubleClicked(QListWidgetItem *)', self.onDefinitionDoubleClicked),
(self.dockDefinitions, 'visibilityChanged(bool)', self.onVisibilityChanged),
(self.dockAnki, 'visibilityChanged(bool)', self.onVisibilityChanged),
(self.updateFinder, 'updateSearchResult', self.onUpdaterSearchResult)
]
@ -292,6 +294,11 @@ class MainWindowReader(QtGui.QMainWindow, Ui_MainWindowReader):
self.anki.browseFact(self.addedFacts[row])
def onVisibilityChanged(self, visible):
self.actionToggleAnki.setChecked(self.dockAnki.isVisible())
self.actionToggleDefinitions.setChecked(self.dockDefinitions.isVisible())
def onUpdaterSearchResult(self, result):
if result and result > constants['version']:
QtGui.QMessageBox.information(