mirror of
https://github.com/rbreu/beeref.git
synced 2026-03-11 08:54:28 +00:00
Fit view after loading a file
This commit is contained in:
parent
90067f96ab
commit
079c0a1829
1 changed files with 2 additions and 0 deletions
|
|
@ -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}')
|
||||
|
|
|
|||
Loading…
Reference in a new issue