fix(dbus): activate existing window on repeated launch#355
Open
add-uos wants to merge 1 commit into
Open
Conversation
Add ActivateWindow D-Bus method to restore and raise the existing window when user tries to launch a second instance. 添加ActivateWindow D-Bus接口,在重复启动时激活已有实例窗口, 从最小化状态恢复并显示到前台。 Log: 修复重复启动时激活已有窗口 PMS: BUG-364253 Influence: 重复启动语音笔记时,已有实例窗口会被激活显示到前台, 而非静默退出。
7bfeced to
68336fb
Compare
deepin pr auto review你好!我是CodeGeeX。我已经仔细审查了你提供的Git Diff。这次代码变更的主要目的是实现单实例应用的主窗口激活:当用户尝试启动第二个实例时,通过D-Bus通知正在运行的第一实例将其主窗口从最小化状态恢复并置顶。 整体思路是正确的,但在语法逻辑、代码质量和性能方面有一些值得注意和改进的地方。以下是详细的审查意见: 1. 语法与逻辑
2. 代码质量
3. 代码性能
4. 代码安全
改进后的代码建议基于以上分析,我为你提供了修改后的代码参考: 1.
|
lzwind
approved these changes
Jun 3, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos, 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.
Add ActivateWindow D-Bus method to restore and raise the existing window when user tries to launch a second instance.
添加ActivateWindow D-Bus接口,在重复启动时激活已有实例窗口,
从最小化状态恢复并显示到前台。
Log: 修复重复启动时激活已有窗口
PMS: BUG-364253
Influence: 重复启动语音笔记时,已有实例窗口会被激活显示到前台,
而非静默退出。