From 1a90f2f3af28b2c4f8e52eafa13f16f8221c5b69 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Mon, 25 Sep 2023 19:34:29 +0200 Subject: [PATCH] fix: Only restart springboard if the system language is changed --- lib/simulator-xcode-9.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/simulator-xcode-9.js b/lib/simulator-xcode-9.js index 426b29c..038fea4 100644 --- a/lib/simulator-xcode-9.js +++ b/lib/simulator-xcode-9.js @@ -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; }