Try to find a reasonable size when starting application.

This commit is contained in:
Sergio Martínez Portela 2021-04-03 01:47:58 +02:00
parent f3e1573677
commit 2196c13b14

View File

@ -33,6 +33,9 @@ class Dialog(QDialog):
super(Dialog, self).__init__()
self.setWindowTitle("OrgEditor")
scrSize = self.screen().size()
self.resize(scrSize.width() / 1.5,
scrSize.height() / 1.5)
self.loader = None
self.manager = doc_manager.DocumentManager(DOCS_PATH)