-
Notifications
You must be signed in to change notification settings - Fork 57
sync: from linuxdeepin/dde-session-shell #424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Synchronize source files from linuxdeepin/dde-session-shell. Source-pull-request: linuxdeepin/dde-session-shell#11
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: deepin-ci-robot 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 |
Reviewer's GuideSync upstream changes from linuxdeepin/dde-session-shell: add optional DSS_SNIPE support for retrieving application icons over D-Bus, refactor inhibitor icon lookup with improved fallback logic, and conditionally update LASTORE DConfig key in shutdown widget. Class Diagram: InhibitWarnView and Dependencies for Icon RetrievalclassDiagram
class InhibitWarnView {
+setInhibitorList(const QList<InhibitorData> &list) void
}
class InhibitorData {
QString icon
int pid
QString name
QString appName
QString reason
}
class DSGApplication {
<<Utility>>
+static getId(pid) : QString
}
class DDBusSender {
+service(QString) : DDBusSender
+path(QString) : DDBusSender
+interface(QString) : DDBusSender
+property(QString) : DDBusSender
+get() : QDBusReply
}
class DUtil {
<<Utility>>
+static escapeToObjectPath(QString) : QString
}
class QIcon {
<<Utility>>
+static fromTheme(QString) : QIcon
+static fromTheme(QString, QIcon) : QIcon
}
InhibitWarnView ..> InhibitorData : uses
InhibitWarnView ..> QIcon : uses
InhibitWarnView ..> DSGApplication : "uses (if ENABLE_DSS_SNIPE)"
InhibitWarnView ..> DDBusSender : "uses (if ENABLE_DSS_SNIPE)"
InhibitWarnView ..> DUtil : "uses (if ENABLE_DSS_SNIPE)"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @deepin-ci-robot - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| QIcon icon; | ||
|
|
||
| if (inhibitor.icon.isEmpty() && inhibitor.pid) { | ||
| if (inhibitor.icon.isEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (bug_risk): Removed pid check causes missing fallback icon for non-pid entries
Without the PID check, entries without a PID and with an empty icon will not display a fallback icon. Please restore the PID check or provide a default icon when pid == 0.
Synchronize source files from linuxdeepin/dde-session-shell.
Source-pull-request: linuxdeepin/dde-session-shell#11
Summary by Sourcery
Introduce optional DSS_SNIPE integration to improve inhibitor icon lookup and adjust configuration naming.
Enhancements: