diff --git a/src/common/iflytek_ai_assistant.cpp b/src/common/iflytek_ai_assistant.cpp index fb02d828..4f059e3a 100644 --- a/src/common/iflytek_ai_assistant.cpp +++ b/src/common/iflytek_ai_assistant.cpp @@ -170,6 +170,7 @@ IflytekAiAssistant::CallStatus IflytekAiAssistant::checkValid() { qCDebug(appLog) << "checkValid status:" << m_status; switch (m_status) { + case Invalid: case NotInstalled: m_status = copilotInstalled(m_copilot); if (Enable != m_status) { diff --git a/src/startmanager.cpp b/src/startmanager.cpp index e615c73b..f57022ef 100644 --- a/src/startmanager.cpp +++ b/src/startmanager.cpp @@ -18,7 +18,6 @@ #include #endif -#include "common/iflytek_ai_assistant.h" DWIDGET_USE_NAMESPACE @@ -96,8 +95,6 @@ StartManager::StartManager(QObject *parent) connect(m_pTimer, &QTimer::timeout, this, &StartManager::autoBackupFile); m_pTimer->start(EAutoBackupInterval); - // init flytek backend, check service valid - IflytekAiAssistant::instance()->checkAiExists(); qCInfo(appLog) << "StartManager initialized with backup interval:" << EAutoBackupInterval << "ms"; qCDebug(appLog) << "Exit StartManager constructor"; }