Commit 4ba31012 authored by Fushan Wen's avatar Fushan Wen Committed by Nate Graham
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
......@@ -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")
}
}
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment