Commit e0e0f88
fix: prevent duplicate QML import paths
1. Added check to avoid prepending DDE_SHELL_QML_INSTALL_DIR if it
already exists in import path list
2. This prevents duplicate paths and maintains correct search order for
QML imports
3. The change ensures consistent behavior when environment variables add
the same path
4. Fixes issue where duplicate paths could cause import resolution
problems
fix: 防止 QML 导入路径重复
1. 添加检查避免在导入路径列表中已存在 DDE_SHELL_QML_INSTALL_DIR 时重复
添加
2. 防止路径重复并保持 QML 导入的正确搜索顺序
3. 确保当环境变量添加相同路径时行为一致
4. 修复重复路径可能导致导入解析问题的情况1 parent 83021e8 commit e0e0f88
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
| 47 | + | |
| 48 | + | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
| |||
0 commit comments