Skip to content

Commit 4346fa5

Browse files
committed
feat: Add bug report and support links to Help menu
- Add "Report Bug" → youtubego.org/bug-report.html - Add "Support Development" → buymeacoffee.com/toxi360
1 parent 7b136cd commit 4346fa5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ui/components/menu_bar.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from PySide6.QtGui import QAction
33
from PySide6.QtCore import Qt
44
import requests
5+
import webbrowser
56

67
class LicenseDialog(QDialog):
78
def __init__(self, title, content, parent=None):
@@ -54,6 +55,12 @@ def init_menu_bar(self):
5455
github_action = QAction("Github: https://github.com/Efeckc17", self.main_window)
5556
github_action.triggered.connect(self.show_github_info)
5657

58+
report_bug_action = QAction("Report Bug", self.main_window)
59+
report_bug_action.triggered.connect(self.open_bug_report)
60+
61+
support_dev_action = QAction("Support Development", self.main_window)
62+
support_dev_action.triggered.connect(self.open_support_page)
63+
5764
# Licenses submenu
5865
licenses_menu = help_menu.addMenu("Licenses")
5966

@@ -74,13 +81,27 @@ def init_menu_bar(self):
7481

7582
help_menu.addAction(mail_action)
7683
help_menu.addAction(github_action)
84+
help_menu.addAction(report_bug_action)
85+
help_menu.addAction(support_dev_action)
7786

7887
def show_contact_info(self):
7988
QMessageBox.information(self.main_window, "Contact", "For support: [email protected]")
8089

8190
def show_github_info(self):
8291
QMessageBox.information(self.main_window, "GitHub", "https://github.com/Efeckc17")
8392

93+
def open_bug_report(self):
94+
try:
95+
webbrowser.open("https://youtubego.org/bug-report.html")
96+
except Exception as e:
97+
QMessageBox.warning(self.main_window, "Error", f"Could not open bug report page: {str(e)}")
98+
99+
def open_support_page(self):
100+
try:
101+
webbrowser.open("https://buymeacoffee.com/toxi360")
102+
except Exception as e:
103+
QMessageBox.warning(self.main_window, "Error", f"Could not open support page: {str(e)}")
104+
84105
def show_youtubego_license(self):
85106
github_license_url = "https://raw.githubusercontent.com/Efeckc17/YoutubeGO/main/LICENSE"
86107
try:

0 commit comments

Comments
 (0)