1.修复设置路径不生效;\n2.修复元数据更新后业务转码模块对函数检查状态异常问题;

This commit is contained in:
taocong
2026-07-07 10:21:02 +08:00
parent 38fde4223f
commit 9fdd342234
12 changed files with 64 additions and 3 deletions
@@ -20,6 +20,7 @@
#include <QStandardItem>
#include <QStyledItemDelegate>
#include <QPainter>
#include <QShowEvent>
#include "src/utils/logmanager.h"
#include "ElaPushButton.h"
#include "ElaProgressBar.h"
@@ -225,6 +226,14 @@ void BatchConvertPage::resizeEvent(QResizeEvent *event)
}
}
void BatchConvertPage::showEvent(QShowEvent *event)
{
QWidget::showEvent(event);
// 每次显示页面时刷新"是否存在"列
// (元数据更新后 DataCache 变化,需要重新检查函数存在状态)
updateTable();
}
void BatchConvertPage::onEditRow(int row)
{
if (row < 0 || row >= m_funcList.size()) {
@@ -50,6 +50,7 @@ private:
bool checkFunctionExists(const QString &funcName);
void updateTable();
void resizeEvent(QResizeEvent *event) override;
void showEvent(QShowEvent *event) override;
QString getConfigFilePath() const;
void setupConfigWatcher();
QDateTime currentFileMtime() const;
@@ -128,6 +128,13 @@ void MetadataUpdatePage::initUI()
void MetadataUpdatePage::showEvent(QShowEvent* event)
{
ElaScrollPage::showEvent(event);
// 每次显示页面时重新从 ConfigManager 读取路径
// (用户可能已在设置页面修改过路径)
if (_processor) {
_processor->reloadPaths();
}
static bool firstShow = true;
if (firstShow)
{