Commit 6046cf95 authored by Swapnil Tripathi's avatar Swapnil Tripathi Committed by Aleix Pol Gonzalez
Browse files

Clear log button disabled when there is no log to clean

parent 13a62495
...@@ -104,6 +104,7 @@ Kirigami.ScrollablePage { ...@@ -104,6 +104,7 @@ Kirigami.ScrollablePage {
iconName: "edit-clear-history" iconName: "edit-clear-history"
text: i18n("Clear Log") text: i18n("Clear Log")
onTriggered: itemModel.clear() onTriggered: itemModel.clear()
enabled: itemModel.count != 0
} }
] ]
......
Markdown is supported
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