Commit 6f3cffc8 authored by Nate Graham's avatar Nate Graham
Browse files

Hide filter bar when showing an error message

In this case it doesn't do anything and is just a bit of minor visual
clutter. It still appears in the normal state and when the filter text
matches no output.
parent 37aff923
Pipeline #150167 passed with stage
in 1 minute and 49 seconds
......@@ -127,7 +127,10 @@ KCM.SimpleKCM {
}
footer: QQC2.ToolBar {
visible: root.state !== "loading" && root.textFormat === TextEdit.PlainText
visible: {
const isVisibleState = (root.state === "" || !(root.state === "noData" && contentLoader.item.errorNotFilter))
return isVisibleState && root.textFormat === TextEdit.PlainText
}
Kirigami.SearchField {
id: filterField
......
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