Fix remote row's copy name action actually copying the installation

This commit is contained in:
heliguy4599
2024-10-06 22:25:21 -04:00
parent d3bc613ee9
commit 377865c18d

View File

@@ -129,10 +129,10 @@ class RemoteRow(Adw.ActionRow):
row = row.get_child()
match row:
case self.copy_title:
HostInfo.clipboard.set(self.get_title())
HostInfo.clipboard.set(self.remote.title)
self.parent_page.toast_overlay.add_toast(Adw.Toast(title=_("Copied title")))
case self.copy_name:
HostInfo.clipboard.set(self.get_subtitle())
HostInfo.clipboard.set(self.remote.name)
self.parent_page.toast_overlay.add_toast(Adw.Toast(title=_("Copied name")))
case self.enable_remote:
self.enable_remote_handler()