Commit 365bd63a authored by Andrea Scarpino's avatar Andrea Scarpino

Enable copy when there's something to copy

parent 7e794b85
......@@ -42,6 +42,7 @@ Page {
if (found) {
songText.text = lyric.text;
copy.enabled = true;
} else {
songText.text = "Not found :-("
}
......@@ -68,11 +69,14 @@ Page {
artist.forceActiveFocus();
song.text = "";
songText.text = "";
copy.enabled = false;
}
}
MenuItem {
id: copy
text: qsTr("Copy to clipboard")
enabled: songText.text.length > 0
onClicked: {
Clipboard.text = songText.text;
......
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