chore: update version to 6.5.40#202
Conversation
- bump version to 6.5.40 Log : bump version to 6.5.40
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the application package version metadata to 6.5.40.1 for the linglong configuration and aligns Debian packaging changelog accordingly. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
TAG Bot TAG: 6.5.40 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, wyu71 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin pr auto review★ 总体评分:65分■ 【总体评价】
■ 【详细分析】
■ 【改进建议代码示例】 diff --git a/deepin-font-manager/interfaces/dfontpreviewlistview.cpp b/deepin-font-manager/interfaces/dfontpreviewlistview.cpp
index e72f4949..8599a519 100644
--- a/deepin-font-manager/interfaces/dfontpreviewlistview.cpp
+++ b/deepin-font-manager/interfaces/dfontpreviewlistview.cpp
@@ -1963,10 +1963,22 @@ void DFontPreviewListView::disableFonts(const QStringList &fontFiles)
{
// 通过 D-Bus 查询 DDE 外观服务设置的当前系统字体(放在锁外,避免同步 IPC 阻塞其他线程)
QString ddeStandardFont;
+ QDBusReply<QString> reply;
{
- QDBusReply<QString> reply = QDBusInterface(
+ reply = QDBusInterface(
QStringLiteral("org.deepin.dde.Appearance1"),
+ QStringLiteral("/org/deepin/dde/Appearance1"),
+ QStringLiteral("org.deepin.dde.Appearance1"),
QStringLiteral("StandardFont")).call(QStringLiteral("Get"));
if (reply.isValid())
ddeStandardFont = reply.value().toString();
}
+
+ // 校验并跳过系统当前正在使用的标准字体,防止误禁用导致系统界面异常
+ QStringList actualDisableList;
+ for (const QString &fontFile : fontFiles) {
+ if (!ddeStandardFont.isEmpty() && fontFile.contains(ddeStandardFont)) {
+ qDebug() << "Skip disabling in-use standard font:" << fontFile;
+ continue;
+ }
+ actualDisableList.append(fontFile);
+ }
+ // 后续使用 actualDisableList 进行禁用操作...
} |
|
TAG Bot ✅ Tag created successfully 📋 Tag Details
|
Log : bump version to 6.5.40
Summary by Sourcery
Chores: