chenluhua1980
2026-01-19 44360bc2cdeee16be72f9cc4bfb42e0ac26b5b44
1.修改优化
已修改2个文件
17 ■■■■■ 文件已修改
SourceCode/Bond/Servo/CMaster.cpp 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SourceCode/Bond/Servo/CMaster.h 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SourceCode/Bond/Servo/CMaster.cpp
@@ -234,7 +234,7 @@
        readCache();
        loadState();
        if (m_listener.onControlJobChanged) {
            m_listener.onControlJobChanged(this);
            notifyControlJobChanged();
        }
@@ -2896,7 +2896,7 @@
        this->saveState();
        if (m_listener.onControlJobChanged) {
            m_listener.onControlJobChanged(this);
            notifyControlJobChanged();
        }
        return (int)m_processJobs.size();
@@ -2956,7 +2956,7 @@
        m_pControlJob->setPJs(temps);
        this->saveState();
        if (m_listener.onControlJobChanged) {
            m_listener.onControlJobChanged(this);
            notifyControlJobChanged();
        }
@@ -3077,7 +3077,7 @@
        }
        if (pausedAny && m_listener.onControlJobChanged) {
            // 通知应用层刷新 UI/按钮状态
            m_listener.onControlJobChanged(this);
            notifyControlJobChanged();
        }
        if (pausedAny && !m_bPauseAlarmRaised) {
            std::string desc = CToolUnits::formatString("<PauseEvent CEID=%u>", ceid);
@@ -3392,7 +3392,7 @@
        saveState();
        if (m_listener.onControlJobChanged) {
            m_listener.onControlJobChanged(this);
            notifyControlJobChanged();
        }
        return true;
@@ -3429,7 +3429,7 @@
        saveState();
        if (m_listener.onControlJobChanged) {
            m_listener.onControlJobChanged(this);
            notifyControlJobChanged();
        }
        return true;
SourceCode/Bond/Servo/CMaster.h
@@ -296,5 +296,10 @@
    private:
        Collector* m_pCollector = nullptr;
        void CreateDAQBridgeServer();
        inline void notifyControlJobChanged() {
            if (m_listener.onControlJobChanged) {
                m_listener.onControlJobChanged(this);
            }
        }
    };
}