fix: improve file manager command handling#669
Merged
Conversation
Contributor
Author
lzwind
reviewed
May 28, 2025
deepin pr auto review代码审查意见:
综上所述,建议对代码进行重构,以提高代码的可读性、一致性和安全性。 |
lzwind
approved these changes
May 28, 2025
Contributor
|
TAG Bot New tag: 6.5.19 |
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-317649
lzwind
approved these changes
Jun 9, 2025
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, lzwind 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These changes make the file manager command execution more reliable and maintainable by:
fix: 改进文件管理器命令处理
这些改进通过以下方式使文件管理器命令执行更可靠和可维护:
pms: BUG-317649