version bump, fixing dock visibility
This commit is contained in:
parent
9eccefb09e
commit
ea07549a09
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
|
|
||||||
constants = {
|
constants = {
|
||||||
'version': '0.03b',
|
'version': '0.04b',
|
||||||
|
|
||||||
'urlUpdates': 'http://foosoft.net/projects/yomichan/dev/updates.xml',
|
'urlUpdates': 'http://foosoft.net/projects/yomichan/dev/updates.xml',
|
||||||
'urlHomepage': 'https://github.com/FooSoft/yomichan/',
|
'urlHomepage': 'https://github.com/FooSoft/yomichan/',
|
||||||
|
@ -91,6 +91,8 @@ class MainWindowReader(QtGui.QMainWindow, Ui_MainWindowReader):
|
|||||||
(self.textDefinitions, 'anchorClicked(const QUrl&)', self.onDefinitionsAnchorClicked),
|
(self.textDefinitions, 'anchorClicked(const QUrl&)', self.onDefinitionsAnchorClicked),
|
||||||
(self.textDefinitionSearch, 'returnPressed()', self.onDefinitionSearchReturn),
|
(self.textDefinitionSearch, 'returnPressed()', self.onDefinitionSearchReturn),
|
||||||
(self.listDefinitions, 'itemDoubleClicked(QListWidgetItem *)', self.onDefinitionDoubleClicked),
|
(self.listDefinitions, 'itemDoubleClicked(QListWidgetItem *)', self.onDefinitionDoubleClicked),
|
||||||
|
(self.dockDefinitions, 'visibilityChanged(bool)', self.onVisibilityChanged),
|
||||||
|
(self.dockAnki, 'visibilityChanged(bool)', self.onVisibilityChanged),
|
||||||
(self.updateFinder, 'updateSearchResult', self.onUpdaterSearchResult)
|
(self.updateFinder, 'updateSearchResult', self.onUpdaterSearchResult)
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -292,6 +294,11 @@ class MainWindowReader(QtGui.QMainWindow, Ui_MainWindowReader):
|
|||||||
self.anki.browseFact(self.addedFacts[row])
|
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):
|
def onUpdaterSearchResult(self, result):
|
||||||
if result and result > constants['version']:
|
if result and result > constants['version']:
|
||||||
QtGui.QMessageBox.information(
|
QtGui.QMessageBox.information(
|
||||||
|
Loading…
Reference in New Issue
Block a user