1
1
mirror of https://github.com/KenanZhu/AutoLibrary.git synced 2026-06-21 17:03:03 +08:00

fix(theme): 修复死锁、冗余读取、空作者字符串等交叉审查问题

- ThemeManager 拆分 _removeThemeFile 无锁版本, 消除 importTheme 持锁
  时调用 removeTheme 导致的死锁
- validateTheme 增加 check_qss 参数, listThemes 跳过 QSS 读取
- validateTheme 拒绝空/空白作者字符串, 避免 info.json 与文件名不一致
- 统一默认作者为 "未知作者"
- ALSettingsWidget.ui 增加删除按钮 [-], 浏览按钮改为 [+]
- ALSettingsWidget 实现 onRemoveThemeButtonClicked 删除逻辑
This commit is contained in:
2026-06-16 19:37:09 +08:00
parent 007b4dc2ef
commit 57f1cfb3f2
4 changed files with 95 additions and 25 deletions
+20 -1
View File
@@ -328,7 +328,26 @@
</size>
</property>
<property name="text">
<string>...</string>
<string>+</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="RemoveThemeButton">
<property name="minimumSize">
<size>
<width>25</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>25</width>
<height>25</height>
</size>
</property>
<property name="text">
<string>-</string>
</property>
</widget>
</item>