mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
2e8abd963d
commit
fd64a44c61
@ -280,8 +280,11 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
|
|||||||
def restore_state(self):
|
def restore_state(self):
|
||||||
state = dynamic.get('viewer_toolbar_state', None)
|
state = dynamic.get('viewer_toolbar_state', None)
|
||||||
if state is not None:
|
if state is not None:
|
||||||
state = QByteArray(state)
|
try:
|
||||||
self.restoreState(state, self.STATE_VERSION)
|
state = QByteArray(state)
|
||||||
|
self.restoreState(state, self.STATE_VERSION)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def lookup(self, word):
|
def lookup(self, word):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user