Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update contact method to link to GitHub issues instead of email #17

Merged
merged 1 commit into from
Nov 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading