stage manager & display orientation lock for iPhone

This commit is contained in:
TrueZhuanjia
2025-06-25 20:52:07 +08:00
parent 6bc142a07b
commit 357a907838
7 changed files with 33 additions and 35 deletions
@@ -1310,7 +1310,8 @@ BOOL isCustomResolution(CGSize res) {
[self updateResolutionDisplayLabel];
// Unlock Display Orientation setting
bool unlockDisplayOrientationSelectorEnabled = [self isFullScreenRequired];//need "requires fullscreen" enabled in the app bunddle to make runtime orientation limitation woring
// bool unlockDisplayOrientationSelectorEnabled = [self isFullScreenRequired];//need "requires fullscreen" enabled in the app bunddle to make runtime orientation limitation woring
bool unlockDisplayOrientationSelectorEnabled = true;
if(unlockDisplayOrientationSelectorEnabled) [self.unlockDisplayOrientationSelector setSelectedSegmentIndex:currentSettings.unlockDisplayOrientation ? 1 : 0];
else [self.unlockDisplayOrientationSelector setSelectedSegmentIndex:1]; // can't lock screen orientation in this mode = Display Orientation always unlocked
[self.unlockDisplayOrientationSelector setEnabled:unlockDisplayOrientationSelectorEnabled];
@@ -1960,7 +1961,6 @@ BOOL isCustomResolution(CGSize res) {
}
}
- (void) saveSettings {
DataManager* dataMan = [[DataManager alloc] init];
NSInteger framerate = [self getChosenFrameRate];