iOS: Do not decorate the iOS Simulator device with "ready to use" icon

The iOS Simulator device is always there, and always usable, it never
can be unavailable. Since now the device state leads to a decoration in
the device selector(s), always having a "connected" bubble there looks
confusing. Remove it.

Change-Id: Ia218e05367a18841e966ea8566e16ad859a09597
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Eike Ziller
2024-01-19 10:49:16 +01:00
parent 3f224291e6
commit 73475480f7
2 changed files with 4 additions and 2 deletions

View File

@@ -92,6 +92,8 @@ bool IosRunConfiguration::isEnabled() const
Utils::Id devType = DeviceTypeKitAspect::deviceTypeId(kit());
if (devType != Constants::IOS_DEVICE_TYPE && devType != Constants::IOS_SIMULATOR_TYPE)
return false;
if (devType == Constants::IOS_SIMULATOR_TYPE)
return true;
IDevice::ConstPtr dev = DeviceKitAspect::device(kit());
if (dev.isNull() || dev->deviceState() != IDevice::DeviceReadyToUse)
@@ -251,7 +253,7 @@ QString IosRunConfiguration::disabledReason() const
return Tr::tr("No device chosen. Enable developer mode on a device."); // should not happen
else
return Tr::tr("No device available.");
} else {
} else if (devType == Constants::IOS_DEVICE_TYPE) {
switch (dev->deviceState()) {
case IDevice::DeviceReadyToUse:
break;

View File

@@ -30,7 +30,7 @@ IosSimulator::IosSimulator(Id id)
setOsType(Utils::OsTypeMac);
settings()->displayName.setDefaultValue(Tr::tr("iOS Simulator"));
setDisplayType(Tr::tr("iOS Simulator"));
setDeviceState(DeviceReadyToUse);
setDeviceState(DeviceStateUnknown);
}
IosSimulator::IosSimulator()