Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #189 from ess-dmsc/104_Automatically_zoom_3D_view_…
Browse files Browse the repository at this point in the history
…when_extent_of_instrument_changes

104 automatically zoom 3d view when extent of instrument changes
  • Loading branch information
rerpha authored Apr 16, 2019
2 parents 4268247 + 460f63c commit 1d5dc2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/Qtmodels/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ ApplicationWindow {
// When the model updates, request new json for the view if desired
Connections {
target: components
onModel_updated: jsonConnector.request_filewriter_json(components)
onModel_updated: {
jsonConnector.request_filewriter_json(components)
instrumentEntity.camera.viewAll()
}
enabled: jsonMode == "liveFW"
}

Expand Down

0 comments on commit 1d5dc2a

Please sign in to comment.