Skip to content

Commit

Permalink
fix: Only restart springboard if the system language is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach committed Sep 25, 2023
1 parent 127927d commit 1a90f2f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/simulator-xcode-9.js
Original file line number Diff line number Diff line change
Expand Up @@ -578,10 +578,15 @@ class SimulatorXcode9 extends SimulatorXcode8 {
])));
}

// In order to translate com.apple.SpringBoard, system prompts for push notification and system prompts for location
await B.all(['com.apple.SpringBoard', 'com.apple.locationd'].map((arg) => this.simctl.spawnProcess([
'launchctl', 'stop', arg
])));
if (globalPrefs.AppleLanguages) {
// In order to translate com.apple.SpringBoard, system prompts
// for push notification and system prompts for location
await B.all(['com.apple.SpringBoard', 'com.apple.locationd']
.map((arg) => this.simctl.spawnProcess([
'launchctl', 'stop', arg
]))
);
}

return true;
}
Expand Down

0 comments on commit 1a90f2f

Please sign in to comment.