fix(th_14_panels): 修复ShortX图标选择器onSelect ReferenceError
删除未定义的 inputShortXIconName 引用,解除 ReferenceError 导致的回调中断, 使 updateShortXIconPreview() 能正常触发预览框刷新
This commit is contained in:
@@ -902,9 +902,8 @@ FloatBallAppWM.prototype.buildButtonEditorPanelView = function() {
|
||||
currentTint: (inputShortXIconTint && inputShortXIconTint.input) ? String(inputShortXIconTint.input.getText() || "") : "",
|
||||
onSelect: function(name) {
|
||||
currentShortXIconName = name;
|
||||
if (inputShortXIconName && inputShortXIconName.input) inputShortXIconName.input.setText(name);
|
||||
updateShortXIconPreview();
|
||||
try { if (shortxPickerState.toggleBtn) shortxPickerState.toggleBtn.setText(name || "选择图标"); } catch(e) {}
|
||||
try { if (shortxPickerState.toggleBtn) shortxPickerState.toggleBtn.setText(name || "\u9009\u62e9\u56fe\u6807"); } catch(e) {}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user