Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Workspace
Commits
14d41c0c
Commit
14d41c0c
authored
May 03, 2021
by
Nate Graham
Browse files
[applets/batterymonitor] Simplify condition
parent
ee77ecd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
applets/batterymonitor/package/contents/ui/PowerManagementItem.qml
View file @
14d41c0c
...
...
@@ -62,8 +62,8 @@ ColumnLayout {
// isn't enabled anyway
visible
:
inhibitions
.
length
===
1
&&
!
powerManagement
.
disabled
Layout.fillWidth
:
true
iconSource
:
inhibitions
.
length
===
1
?
inhibitions
[
0
].
Icon
:
""
text
:
inhibitions
.
length
===
1
?
iconSource
:
visible
?
inhibitions
[
0
].
Icon
:
""
text
:
visible
?
inhibitions
[
0
].
Reason
?
i18n
(
"
%1 is inhibiting sleep and screen locking (%2)
"
,
inhibitions
[
0
].
Name
,
inhibitions
[
0
].
Reason
)
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment