From 99547894b65370ecee27fcc5f005a9f45fde94ae Mon Sep 17 00:00:00 2001 From: Hermes Date: Mon, 20 Apr 2026 19:58:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(th=5F14=5Fpanels):=20=E4=BF=AE=E5=A4=8DShor?= =?UTF-8?q?tX=E5=9B=BE=E6=A0=87=E9=80=89=E6=8B=A9=E5=99=A8onSelect=20Refer?= =?UTF-8?q?enceError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除未定义的 inputShortXIconName 引用,解除 ReferenceError 导致的回调中断, 使 updateShortXIconPreview() 能正常触发预览框刷新 --- code/th_14_panels.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/code/th_14_panels.js b/code/th_14_panels.js index 092dbaa..ac50234 100644 --- a/code/th_14_panels.js +++ b/code/th_14_panels.js @@ -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) {} } }); });