- add necessary UI tips
- restore "view all apps" for host card - minor fixes
This commit is contained in:
@@ -876,7 +876,7 @@ BOOL isCustomResolution(int resolutionSelected) {
|
||||
|| [bundleId isEqualToString:@"com.voidlinkextreme.iOS"]
|
||||
|| [bundleId isEqualToString:@"com.voidlink.tf.debug10.iOS"]);
|
||||
|
||||
if([Utils isIPad] && loadPencilSection){
|
||||
if([GenericUtils isIPad] && loadPencilSection){
|
||||
MenuSectionView* pencilSection = [[MenuSectionView alloc] init];
|
||||
pencilSection.delegate = self;
|
||||
pencilSection.sectionTitle = [LocalizationHelper localizedStringForKey:@"Pencil"];
|
||||
@@ -3013,9 +3013,28 @@ BOOL isCustomResolution(int resolutionSelected) {
|
||||
}
|
||||
|
||||
- (void)enableOswForNativeTouchSwitchFlipped:(UISwitch *)sender{
|
||||
if(!settingsViewJustLoaded
|
||||
&& sender.isOn==false
|
||||
&& [GenericUtils isEnableOswForNativeTouchSwitchFirstFlipping]){
|
||||
[AlertControllerUtil showAlertIn:self
|
||||
title:[LocalizationHelper localizedStringForKey:@"Tips"]
|
||||
message:[LocalizationHelper localizedStringForKey:@"enableOswForNativeTouchSwitchTip"]
|
||||
withCancel:NO
|
||||
buttonTitle:[LocalizationHelper localizedStringForKey:@"This tip won't be shown again"]
|
||||
countdown:6
|
||||
action:nil
|
||||
completion:^{
|
||||
[self setHidden:!sender.isOn forStack:self.onScreenWidgetStack];
|
||||
[self setHidden:!sender.isOn forStack:self.buttonVisualFeedbackStack];
|
||||
[self handleOswGestureChange];
|
||||
if(!sender.isOn) self.onScreenWidgetSelector.selectedSegmentIndex = OnScreenControlsLevelOff;
|
||||
}];
|
||||
}
|
||||
|
||||
[self setHidden:!sender.isOn forStack:self.onScreenWidgetStack];
|
||||
[self setHidden:!sender.isOn forStack:self.buttonVisualFeedbackStack];
|
||||
[self handleOswGestureChange];
|
||||
if(!sender.isOn) self.onScreenWidgetSelector.selectedSegmentIndex = OnScreenControlsLevelOff;
|
||||
}
|
||||
|
||||
- (void)trackTouchPointSwitchFlipped:(UISwitch *)sender{
|
||||
@@ -3541,7 +3560,7 @@ BOOL isCustomResolution(int resolutionSelected) {
|
||||
*/
|
||||
|
||||
- (void)loadPencilSettings:(TemporarySettings*) tempSettings{
|
||||
if([Utils isIPad]){
|
||||
if([GenericUtils isIPad]){
|
||||
self.pencilTickSelector.selectedSegmentIndex = tempSettings.pencilTickMode.intValue;
|
||||
[self.pencilTickSelector addTarget:self action:@selector(pencilTickModeChanged:) forControlEvents:UIControlEventValueChanged];
|
||||
[self pencilTickModeChanged:self.pencilTickSelector];
|
||||
@@ -3564,7 +3583,7 @@ BOOL isCustomResolution(int resolutionSelected) {
|
||||
}
|
||||
|
||||
- (void)populatePencilSettings:(Settings*)currentSettings{
|
||||
if([Utils isIPad]){
|
||||
if([GenericUtils isIPad]){
|
||||
currentSettings.pencilTickMode = @(self.pencilTickSelector.selectedSegmentIndex);
|
||||
currentSettings.pencilTickIntervalUs = @(self.pencilTickIntervalSlider.value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user