mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2025-01-06 02:37:21 +03:00
Don't enable copy if no code is present
This commit is contained in:
parent
2e7cf4fd18
commit
cc81dffa99
@ -253,6 +253,8 @@ ApplicationWindow {
|
||||
MenuItem {
|
||||
text: qsTr('Copy')
|
||||
shortcut: StandardKey.Copy
|
||||
enabled: (repeater.selected != null)
|
||||
&& (repeater.selected.code != null)
|
||||
onTriggered: {
|
||||
if (repeater.selected != null) {
|
||||
clipboard.setClipboard(repeater.selected.code)
|
||||
|
Loading…
Reference in New Issue
Block a user