Skip to content
GitLab
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
4ba31012
Commit
4ba31012
authored
Mar 29, 2022
by
Fushan Wen
Committed by
Nate Graham
Mar 30, 2022
Browse files
applets/clipboard: Put PlaceholderMessage in a loader
This saves some resources.
parent
154c53f4
Pipeline
#157151
passed with stage
in 6 minutes and 22 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
applets/clipboard/contents/ui/Menu.qml
View file @
4ba31012
...
...
@@ -68,17 +68,22 @@ PlasmaComponents3.ScrollView {
}
}
PlasmaExtras.PlaceholderMessage
{
Loader
{
id
:
emptyHint
readonly
property
bool
hasText
:
model
.
filterRegExp
.
length
>
0
anchors.centerIn
:
parent
width
:
parent
.
width
-
(
PlasmaCore
.
Units
.
largeSpacing
*
4
)
visible
:
menuListView
.
count
===
0
iconName
:
hasText
?
"
edit-none
"
:
"
edit-paste
"
text
:
hasText
?
i18n
(
"
No matches
"
)
:
i18n
(
"
Clipboard is empty
"
)
active
:
menuListView
.
count
===
0
visible
:
active
asynchronous
:
true
sourceComponent
:
PlasmaExtras.PlaceholderMessage
{
width
:
parent
.
width
readonly
property
bool
hasText
:
model
.
filterRegExp
.
length
>
0
iconName
:
hasText
?
"
edit-none
"
:
"
edit-paste
"
text
:
hasText
?
i18n
(
"
No matches
"
)
:
i18n
(
"
Clipboard is empty
"
)
}
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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