-
Notifications
You must be signed in to change notification settings - Fork 41
Feat: Add group setting to show screen size. #630
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -299,3 +299,15 @@ QByteArray Common::executeClientCmd(const QString &cmd, const QStringList &args, | |
| } | ||
| return outPut; | ||
| } | ||
|
|
||
| bool Common::isShowScreenSize() | ||
| { | ||
| bool showScreenSize { true }; | ||
| #ifdef DTKCORE_CLASS_DConfigFile | ||
| DConfig *dconfig = DConfig::create("org.deepin.devicemanager","org.deepin.devicemanager"); | ||
| if(dconfig && dconfig->isValid() && dconfig->keyList().contains("showScreenSize")){ | ||
|
Comment on lines
+307
to
+308
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Clarify and enforce ownership of the DConfig instance to avoid potential leaks. The raw pointer from |
||
| showScreenSize = dconfig->value("showScreenSize").toBool(); | ||
| } | ||
| #endif | ||
| return showScreenSize; | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.