Skip to content

Commit

Permalink
add donate link to help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
lordofbikes committed Oct 19, 2022
1 parent 0876fee commit 8da1b60
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions librecad/src/ui/lc_widgetfactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,12 @@ void LC_WidgetFactory::createMenus(QMenuBar* menu_bar)
connect(license, SIGNAL(triggered()), main_window, SLOT(invokeLicenseWindow()));
help_menu->addAction(license);

QAction* donate = new QAction( QC_ApplicationWindow::tr( "&Donate"), main_window);
connect(donate, &QAction::triggered, main_window, [=](){
QDesktopServices::openUrl( QUrl( "https://librecad.org/donate.html"));
});
help_menu->addAction(donate);

// <[~ Widgets Menu ~]>

QMenu* widgets_menu = new QMenu("Widgets", menu_bar);
Expand Down

0 comments on commit 8da1b60

Please sign in to comment.