Skip to content

Commit

Permalink
enable flip azimuth only on android
Browse files Browse the repository at this point in the history
The feature has been tested on on Android
  • Loading branch information
janbar committed Oct 8, 2024
1 parent 3908a18 commit da8292e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/controls2_515/osmin.qml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ ApplicationWindow {
// the azimuth magnetic should be flipped depending on screen orientation
function flipAzimuth(dip) {
var angle = 0.0;
if (DeviceMobile) {
if (Android) { // tested only on android
switch(screen.primaryOrientation) {
case Qt.LandscapeOrientation:
angle = -90.0; break;
Expand Down

0 comments on commit da8292e

Please sign in to comment.