diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ed09f7a..01953056 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta - modified the 'laser-lines' method in the Paint Plugin such that the rounded part of a painted trace is painted too in the case that the trace width is much higher than the clearing tool diameter - some changes in the Excellon object suggessted by an user: Karl-Heinz +- added a donation link (some people wanted it there so...) 5.01.2022 diff --git a/appGUI/MainGUI.py b/appGUI/MainGUI.py index 4fbe3df7..e8bd8718 100644 --- a/appGUI/MainGUI.py +++ b/appGUI/MainGUI.py @@ -639,6 +639,10 @@ class MainGUI(QtWidgets.QMainWindow): self.menuhelp.addSeparator() + self.menuhelp_donate = self.menuhelp.addAction( + QtGui.QIcon(self.app.resource_location + '/paypal32.png'), + '%s\t%s' % (_('Donate'), '')) + self.menuhelp_readme = self.menuhelp.addAction( QtGui.QIcon(self.app.resource_location + '/warning.png'), '%s\t%s' % (_("How To"), '')) diff --git a/app_Main.py b/app_Main.py index 58deae1e..cb14ccef 100644 --- a/app_Main.py +++ b/app_Main.py @@ -183,7 +183,8 @@ class App(QtCore.QObject): "pdf?7ac957791daba2cdf4c2c913f67a43da" excellon_spec_url = "https://www.ucamco.com/files/downloads/file/305/the_xnc_file_format_specification.pdf" bug_report_url = "https://bitbucket.org/jpcgt/flatcam/issues?status=new&status=open" - + donate_url = "https://www.paypal.com/cgi-bin/webscr?cmd=_" \ + "donations&business=WLTJJ3Q77D98L¤cy_code=USD&source=url" # this variable will hold the project status # if True it will mean that the project was modified and not saved should_we_save = False @@ -2217,6 +2218,7 @@ class App(QtCore.QObject): def connect_menuhelp_signals(self): self.ui.menuhelp_about.triggered.connect(self.on_about) self.ui.menuhelp_readme.triggered.connect(self.on_howto) + self.ui.menuhelp_donate.triggered.connect(lambda: webbrowser.open(self.donate_url)) self.ui.menuhelp_manual.triggered.connect(lambda: webbrowser.open(self.manual_url)) self.ui.menuhelp_report_bug.triggered.connect(lambda: webbrowser.open(self.bug_report_url)) self.ui.menuhelp_exc_spec.triggered.connect(lambda: webbrowser.open(self.excellon_spec_url)) diff --git a/assets/resources/dark_resources/paypal32.png b/assets/resources/dark_resources/paypal32.png new file mode 100644 index 00000000..132b7947 Binary files /dev/null and b/assets/resources/dark_resources/paypal32.png differ diff --git a/assets/resources/paypal32.png b/assets/resources/paypal32.png new file mode 100644 index 00000000..132b7947 Binary files /dev/null and b/assets/resources/paypal32.png differ