diff --git a/VoidLink/ViewControllers/MainFrameViewController.m b/VoidLink/ViewControllers/MainFrameViewController.m index ed44c683..005df062 100644 --- a/VoidLink/ViewControllers/MainFrameViewController.m +++ b/VoidLink/ViewControllers/MainFrameViewController.m @@ -723,7 +723,7 @@ static NSMutableSet* hostList; - (void) addHostTapped { Log(LOG_D, @"Tapped add host"); - GenericUtils.autoPopSoftKeyboard = GenericUtils.isIPhone ? false : true; + GenericUtils.autoPopSoftKeyboard = !GenericUtils.isIPhone; UIAlertController* alertController = [UIAlertController alertControllerWithTitle:[LocalizationHelper localizedStringForKey:@"Add Host Manually"] message:[LocalizationHelper localizedStringForKey:@"Enter IP address to add host manually"] preferredStyle:UIAlertControllerStyleAlert]; diff --git a/VoidLink/ViewControllers/SettingsViewController.m b/VoidLink/ViewControllers/SettingsViewController.m index 41d092bf..50d568c0 100644 --- a/VoidLink/ViewControllers/SettingsViewController.m +++ b/VoidLink/ViewControllers/SettingsViewController.m @@ -2231,7 +2231,7 @@ BOOL isCustomResolution(int resolutionSelected) { } - (void)showCustomOswTip { - GenericUtils.autoPopSoftKeyboard = GenericUtils.isIPhone ? false : true; + GenericUtils.autoPopSoftKeyboard = !GenericUtils.isIPhone; NSString* edgeSide = self.slideToSettingsScreenEdgeSelector.selectedSegmentIndex == 1 ? [LocalizationHelper localizedStringForKey:@"left"] : [LocalizationHelper localizedStringForKey:@"right"]; UIAlertController *alertController = [UIAlertController alertControllerWithTitle:[LocalizationHelper localizedStringForKey:@"Rebase in Streaming"] message:[LocalizationHelper localizedStringForKey:@"Open widget tool in streaming by:\nSliding from %@ screen edge to open cmd tool.\nOr tap %d fingers on stream view, number of fingers required:", edgeSide, self->oswLayoutFingers] @@ -3191,7 +3191,7 @@ BOOL isCustomResolution(int resolutionSelected) { } - (void) promptCustomResolutionDialog { - GenericUtils.autoPopSoftKeyboard = GenericUtils.isIPhone ? false : true; + GenericUtils.autoPopSoftKeyboard = !GenericUtils.isIPhone; UIAlertController *alertController = [UIAlertController alertControllerWithTitle:[LocalizationHelper localizedStringForKey: @"Enter Custom Resolution"] message:nil preferredStyle:UIAlertControllerStyleAlert]; [alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {