From 6fc7b29bc1255ee73fe91b6f111704d539e98ce4 Mon Sep 17 00:00:00 2001 From: lvjunjie Date: Thu, 29 Oct 2026 17:07:16 +0800 Subject: [PATCH] =?UTF-8?q?fix(nmNum):=20=E9=9A=90=E8=97=8F=E6=97=B6?= =?UTF-8?q?=E5=8F=98=E8=A1=A8=E7=9A=AE=E8=AE=A1=E7=AE=97=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E5=B9=B6=E5=89=8D=E7=A7=BB=E5=B0=84=E5=AD=94=E5=B0=81=E5=A0=B5?= =?UTF-8?q?=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/nmNum/nmSubWxs/nmWxTimeDependentSkin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Src/nmNum/nmSubWxs/nmWxTimeDependentSkin.cpp b/Src/nmNum/nmSubWxs/nmWxTimeDependentSkin.cpp index b2cd474d..98dab9cd 100644 --- a/Src/nmNum/nmSubWxs/nmWxTimeDependentSkin.cpp +++ b/Src/nmNum/nmSubWxs/nmWxTimeDependentSkin.cpp @@ -273,6 +273,8 @@ void nmWxTimeDependentSkin::initUI() createButton(m_pRemoveBtn, appDir + "/Res/Icon/nmTimeDepSkin3.png", tr("Remove")); createButton(m_pSplitStepsBtn, appDir + "/Res/Icon/nmTimeDepSkin4.png", tr("Split Steps")); createButton(m_pComputeBtn, appDir + "/Res/Icon/nmTimeDepSkin5.png", tr("Compute")); + // 计算功能尚未实现,隐藏图标和文字容器,让射孔封堵前移到该位置。 + m_pComputeBtn->parentWidget()->hide(); createButton(m_pPerforationClosingBtn, appDir + "/Res/Icon/nmTimeDepSkin6.png", tr("Perforation Closing")); m_pToolbarLayout->addStretch(); @@ -1218,8 +1220,9 @@ void nmWxTimeDependentSkin::restoreToolbarState() m_pSplitStepsBtn->parentWidget()->setVisible(true); } + // 切回默认界面时仍保持计算入口隐藏。 if(m_pComputeBtn && m_pComputeBtn->parentWidget()) { - m_pComputeBtn->parentWidget()->setVisible(true); + m_pComputeBtn->parentWidget()->setVisible(false); } if(m_pPerforationClosingBtn && m_pPerforationClosingBtn->parentWidget()) {