mirror of
https://github.com/borgbase/vorta
synced 2024-12-22 07:43:09 +00:00
Allow copying the public part of the first SSH key
Previously this button would only work if you had more than one SSH key which prevents the first one from being copied.
This commit is contained in:
parent
0cf9f0b36f
commit
a048dad136
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ def ssh_copy_to_clipboard_action(self):
|
|||
msg.setParent(self, QtCore.Qt.Sheet)
|
||||
|
||||
index = self.sshComboBox.currentIndex()
|
||||
if index > 1:
|
||||
if index > 0:
|
||||
ssh_key_filename = self.sshComboBox.itemData(index)
|
||||
ssh_key_path = os.path.expanduser(f'~/.ssh/{ssh_key_filename}.pub')
|
||||
if os.path.isfile(ssh_key_path):
|
||||
|
|
Loading…
Reference in a new issue