-
Notifications
You must be signed in to change notification settings - Fork 106
fix: remove firefox dpi settings #804
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
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: jouyouyun 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 GuideThis PR removes the custom Firefox DPI (devPixelsPerPx) adjustment, as Firefox HiDPI now uses GDK/Xft.dpi automatically. Sequence Diagram: Depiction of Removed Firefox DPI Update LogicsequenceDiagram
participant S as xsettings.Start()
participant XSM as XSManager
participant FFC as Firefox Config Files
Note right of S: This entire interaction was removed.
S ->> XSM: go m.updateFirefoxDPI()
activate XSM
XSM ->> XSM: scale = m.cfgHelper.GetDouble(gsKeyScaleFactor)
XSM ->> FFC: getFirefoxConfigs(ffDir)
activate FFC
FFC -->> XSM: configs
deactivate FFC
loop For each Firefox profile config
XSM ->> FFC: setFirefoxDPI(scale, config, config)
activate FFC
FFC -->> XSM: status
deactivate FFC
end
deactivate XSM
Class Diagram: Method Removal from XSManagerclassDiagram
class XSManager {
-updateFirefoxDPI()
}
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 @jouyouyun - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 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.
|
TAG Bot TAG: 6.1.39 |
|
TAG Bot New tag: 6.1.37 |
|
TAG Bot New tag: 6.1.38 |
|
TAG Bot New tag: 6.1.39 |
|
TAG Bot New tag: 6.1.40 |
|
TAG Bot New tag: 6.1.41 |
|
TAG Bot New tag: 6.1.42 |
|
TAG Bot New tag: 6.1.43 |
|
TAG Bot New tag: 6.1.44 |
|
TAG Bot New tag: 6.1.45 |
Firefox HiDPI has already adapted to GDK and Xft.dpi, so there is no need to set devPixelsPerPx anymore.
deepin pr auto review代码审查意见:
综上所述,建议对代码进行重构,移除未使用的功能,优化错误处理和日志记录,减少代码重复,并提高代码的可配置性和安全性。 |
|
/approve |
|
TAG Bot New tag: 6.1.46 |
|
TAG Bot New tag: 6.1.47 |
|
TAG Bot New tag: 6.1.48 |
|
TAG Bot New tag: 6.1.49 |
|
TAG Bot New tag: 6.1.50 |
|
TAG Bot New tag: 6.1.51 |
|
TAG Bot New tag: 6.1.52 |
|
TAG Bot New tag: 6.1.53 |
|
TAG Bot New tag: 6.1.54 |
|
TAG Bot New tag: 6.1.55 |
|
TAG Bot New tag: 6.1.56 |
|
TAG Bot New tag: 6.1.57 |
|
TAG Bot New tag: 6.1.58 |
|
TAG Bot New tag: 6.1.59 |
|
TAG Bot New tag: 6.1.62 |
|
fixed in #952 |
Firefox HiDPI has already adapted to GDK and Xft.dpi, so there is no need to set devPixelsPerPx anymore.
Summary by Sourcery
Remove obsolete Firefox DPI configuration from the xsettings service now that HiDPI is handled by GDK and Xft.dpi.
Enhancements: