Workaround Qt bug that broke restoring of dock widget states in the editor

This commit is contained in:
Kovid Goyal 2021-07-09 08:29:28 +05:30
parent fb5cc7b649
commit 8bc07171ff
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -376,8 +376,8 @@ class Main(MainWindow):
g = QApplication.instance().desktop().availableGeometry(self)
self.resize(g.width()-50, g.height()-50)
self.restore_state()
self.apply_settings()
QTimer.singleShot(0, self.restore_state)
def apply_settings(self):
self.keyboard.finalize()