Browse Source

Projucer: Fixed a bug recalling iOS orientation settings

tags/2021-05-28
ed 5 years ago
parent
commit
17622e9139
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h

+ 9
- 5
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h View File

@@ -3202,11 +3202,15 @@ private:
if (settingsString.contains ("portrait")) orientations.add ("UIInterfaceOrientationPortrait");
if (settingsString.contains ("landscape")) orientations.addArray ({ "UIInterfaceOrientationLandscapeLeft",
"UIInterfaceOrientationLandscapeRight" });
if (i == 0)
iPhoneScreenOrientationValue = orientations;
else
iPadScreenOrientationValue = orientations;
"UIInterfaceOrientationLandscapeRight" });
if (! orientations.isEmpty())
{
if (i == 0)
iPhoneScreenOrientationValue = orientations;
else
iPadScreenOrientationValue = orientations;
}
}
}
}


Loading…
Cancel
Save