Skip to content

Commit

Permalink
Merge pull request #17 from thelastfantasy/v1.3.1-feedback-link
Browse files Browse the repository at this point in the history
fix: update contact method to link to GitHub issues instead of email
  • Loading branch information
thelastfantasy authored Nov 1, 2024
2 parents 129dffb + 089ad8e commit 299df42
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions sub_adjust.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def shift_times_in_directory(directory, shift_value, shift_direction, layer_numb
log_result_fn(f"\n\n{result_message}")

def open_mail(event=None):
webbrowser.open("mailto:[email protected]")
webbrowser.open("https://github.com/thelastfantasy/sub-adjust/issues")

def show_usage(root):
usage_window = tk.Toplevel(root)
Expand Down Expand Up @@ -350,7 +350,7 @@ def check_queue():
tk.Button(root, text="处理", command=on_submit).grid(row=5, columnspan=3, pady=10)

# 联系作者
contact_label = tk.Label(root, text="联系作者: [email protected]", fg="blue", cursor="hand2")
contact_label = tk.Label(root, text="反馈", fg="blue", cursor="hand2")
contact_label.grid(row=6, column=0, columnspan=3, padx=10, pady=10, sticky=tk.W)
contact_label.bind("<Button-1>", open_mail)
contact_label.bind("<Enter>", lambda e: contact_label.config(fg="red"))
Expand Down
4 changes: 2 additions & 2 deletions sub_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ def __init__(self, root: tk.Tk):
self.context_menu.add_command(label="删除", command=self.clear_all)

# Author contact label
contact_label = tk.Label(root, text="联系作者: [email protected]", fg="blue", cursor="hand2")
contact_label = tk.Label(root, text="反馈", fg="blue", cursor="hand2")
contact_label.pack(anchor='w', pady=(0, 0)) # Remove unnecessary padding at the bottom
contact_label.bind("<Button-1>", self.open_email)
contact_label.bind("<Enter>", lambda e: contact_label.config(fg="red"))
contact_label.bind("<Leave>", lambda e: contact_label.config(fg="blue"))

def open_email(self, event=None):
import webbrowser
webbrowser.open("mailto:[email protected]")
webbrowser.open("https://github.com/thelastfantasy/sub-adjust/issues")

def show_context_menu(self, event):
try:
Expand Down
4 changes: 2 additions & 2 deletions timecode_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def check_queue():
root.after(100, check_queue)

def open_mail(event=None):
webbrowser.open("mailto:[email protected]")
webbrowser.open("https://github.com/thelastfantasy/sub-adjust/issues")

def show_usage(root):
usage_window = tk.Toplevel(root)
Expand Down Expand Up @@ -209,7 +209,7 @@ def select_files():
tk.Button(root, text="转换", command=on_convert).grid(row=4, columnspan=4, pady=10)

# Contact author
contact_label = tk.Label(root, text="联系作者: [email protected]", fg="blue", cursor="hand2")
contact_label = tk.Label(root, text="反馈", fg="blue", cursor="hand2")
contact_label.grid(row=5, column=0, columnspan=2, padx=10, pady=10, sticky=tk.W)
contact_label.bind("<Button-1>", open_mail)
contact_label.bind("<Enter>", lambda e: contact_label.config(fg="red"))
Expand Down

0 comments on commit 299df42

Please sign in to comment.