1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-21 23:33:13 +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:
Joshua Goins 2023-02-19 09:08:58 -05:00 committed by Manu
parent 0cf9f0b36f
commit a048dad136

View file

@ -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):