Skip to content

Commit

Permalink
Merge pull request #2 from shtayeb/fix/copy_cmd_notify
Browse files Browse the repository at this point in the history
fixed copy command error notify bug
  • Loading branch information
anze3db authored Dec 15, 2023
2 parents 4b05b41 + d3c85e2 commit 81d1ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/django_tui/management/commands/tui.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def action_copy_command(self) -> None:
return

if sys.platform == "win32":
copy_command = ["copy"]
copy_command = ["clip"]
elif sys.platform == "darwin":
copy_command = ["pbcopy"]
else:
Expand All @@ -272,7 +272,7 @@ def action_copy_command(self) -> None:
)
self.notify(f"`{command}` copied to clipboard.")
except FileNotFoundError:
self.notify(f"Could not copy to clipboard. `{cmd[0]}` not found.", severity="error")
self.notify(f"Could not copy to clipboard. `{copy_command[0]}` not found.", severity="error")

def action_about(self) -> None:
self.app.push_screen(AboutDialog())
Expand Down

0 comments on commit 81d1ab3

Please sign in to comment.