Commit 29c8b0e
committed
fix: improve file manager command handling
1. Changed command strings to QStringList for better argument handling
2. Fixed typo in pin_screenshots module (changed "select how-item" to
correct "--show-item")
3. Improved consistency across different modules for file manager
commands
4. Added missing QtCore/qcontainerfwd.h include for QStringList support
These changes make the file manager command execution more reliable and
maintainable by:
- Using proper argument separation with QStringList instead of comma-
separated strings
- Ensuring consistent behavior across different parts of the application
- Fixing a typo that could cause the file manager to fail
- Adding required header for QStringList operations
fix: 改进文件管理器命令处理
1. 将命令字符串改为 QStringList 以更好地处理参数
2. 修复 pin_screenshots 模块中的拼写错误(将 "select how-item" 改为正确
的 "--show-item")
3. 提高不同模块间文件管理器命令的一致性
4. 添加缺失的 QtCore/qcontainerfwd.h 头文件以支持 QStringList
这些改进通过以下方式使文件管理器命令执行更可靠和可维护:
- 使用 QStringList 而不是逗号分隔的字符串来正确分离参数
- 确保应用程序不同部分行为一致
- 修复可能导致文件管理器失败的拼写错误
- 添加 QStringList 操作所需的头文件
pms: BUG-3176491 parent ac42bf7 commit 29c8b0e
3 files changed
Lines changed: 11 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3453 | 3453 | | |
3454 | 3454 | | |
3455 | 3455 | | |
3456 | | - | |
3457 | | - | |
| 3456 | + | |
| 3457 | + | |
3458 | 3458 | | |
3459 | 3459 | | |
3460 | | - | |
| 3460 | + | |
| 3461 | + | |
| 3462 | + | |
3461 | 3463 | | |
3462 | | - | |
| 3464 | + | |
| 3465 | + | |
3463 | 3466 | | |
3464 | 3467 | | |
3465 | 3468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
644 | | - | |
| 644 | + | |
645 | 645 | | |
646 | | - | |
| 646 | + | |
647 | 647 | | |
648 | 648 | | |
649 | 649 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
806 | 806 | | |
807 | 807 | | |
808 | 808 | | |
809 | | - | |
810 | | - | |
| 809 | + | |
| 810 | + | |
811 | 811 | | |
812 | 812 | | |
813 | 813 | | |
| |||
0 commit comments