fix: Print "load translate" debug log to channels

Avoid printing such logs to terminal

Bug: https://pms.uniontech.com/bug-view-284539.html
Log: Print "load translate" debug log to channels
This commit is contained in:
Yutao Meng 2024-11-07 16:06:27 +08:00 committed by deepin-bot[bot]
parent 255f171e9f
commit a407dc4032
1 changed files with 1 additions and 1 deletions

View File

@ -1638,7 +1638,7 @@ bool DGuiApplicationHelper::loadTranslator(const QString &fileName, const QList<
DPathBuf path(dir);
QString translatePath = (path / translateFilename).toString();
if (QFile::exists(translatePath + ".qm")) {
qDebug() << "load translate" << translatePath;
qCDebug(dgAppHelper) << "load translate" << translatePath;
auto translator = new QTranslator(qApp);
translator->load(translatePath);
qApp->installTranslator(translator);