- feat: allow touchPad label to be display if it's different from touchPad cmdString

This commit is contained in:
TrueZhuanjia
2025-09-11 21:39:55 +08:00
parent 5418936816
commit c094d74d8e
3 changed files with 10 additions and 8 deletions
@@ -541,7 +541,7 @@
textField.keyboardType = UIKeyboardTypeASCIICapable;
textField.autocorrectionType = UITextAutocorrectionTypeNo;
textField.spellCheckingType = UITextSpellCheckingTypeNo;
textField.text = self->selectedWidgetView.buttonLabel;
textField.text = self->selectedWidgetView.widgetLabel;
}];
[alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
@@ -749,7 +749,7 @@
[self.currentProfileLabel setText:
[LocalizationHelper localizedStringForKey:@" Profile: %@ Widget: %@",
[profilesManager getSelectedProfile].name,
selectedWidgetView.buttonLabel]];
selectedWidgetView.widgetLabel]];
self.undoButton.alpha = selectedWidgetView.layoutChanges.count>1 ? 1.0 : 0.3;