1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Fixed a bug recalling iOS orientation settings

This commit is contained in:
ed 2020-05-04 08:50:57 +01:00
parent 5816958001
commit 17622e9139

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;
}
}
}
}