Fit view after loading a file

This commit is contained in:
Rebecca Breu 2021-04-14 13:31:47 +02:00
parent 90067f96ab
commit 079c0a1829

View file

@ -182,6 +182,8 @@ class BeeGraphicsView(QtWidgets.QGraphicsView, ActionsMixin):
'Problem loading file',
('<p>Problem loading file %s</p>'
'<p>Not accessible or not a proper bee file</p>') % filename)
else:
QtCore.QTimer.singleShot(10, self.on_action_fit_scene)
def open_from_file(self, filename):
logger.info(f'Opening file {filename}')