Skip to content

Commit

Permalink
Rename send_files() to send_or_cancel()
Browse files Browse the repository at this point in the history
For consistency with receive_or_cancel().

For #3
  • Loading branch information
peterstory committed Apr 18, 2024
1 parent 6ba5428 commit 4ab322e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pydiode/gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from pydiode.gui.send import (
add_source_files,
remove_source_files,
send_files,
send_or_cancel,
update_tx_btn,
SEND_PROCESSES,
)
Expand Down Expand Up @@ -96,7 +96,7 @@ def gui_main():
tx_btn = ttk.Button(
tx_inner,
text="Start Sending",
command=lambda: send_files(
command=lambda: send_or_cancel(
root,
sources_list,
send_ip.get(),
Expand Down
2 changes: 1 addition & 1 deletion src/pydiode/gui/send.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def get_increment_size(sources_list, progress_bar):
return progress_bar["maximum"] / n_increments


def send_files(
def send_or_cancel(
root,
sources_list,
send_ip,
Expand Down

0 comments on commit 4ab322e

Please sign in to comment.