Ensure nested and tabbed docks are allowed in the viewer

This commit is contained in:
Kovid Goyal 2020-05-16 13:11:59 +05:30
parent 500d3ae983
commit bd49530b71
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -101,6 +101,7 @@ class EbookViewer(MainWindow):
connect_lambda(t.timeout, self, lambda self: self.save_annotations(in_book_file=False)) connect_lambda(t.timeout, self, lambda self: self.save_annotations(in_book_file=False))
self.pending_open_at = open_at self.pending_open_at = open_at
self.base_window_title = _('E-book viewer') self.base_window_title = _('E-book viewer')
self.setDockOptions(MainWindow.AnimatedDocks | MainWindow.AllowTabbedDocks | MainWindow.AllowNestedDocks)
self.setWindowTitle(self.base_window_title) self.setWindowTitle(self.base_window_title)
self.in_full_screen_mode = None self.in_full_screen_mode = None
self.image_popup = ImagePopup(self) self.image_popup = ImagePopup(self)