Skip to content

Commit f13cb31

Browse files
committed
Add a menu item to report an issue
1 parent 4680d0b commit f13cb31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pstack/gui/main_window.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ wxMenuBar* main_window::make_menu_bar() {
296296
new_ = 1, open, save, close,
297297
import, export_,
298298
pref_scroll, pref_extra,
299-
about, website,
299+
about, website, issue,
300300
};
301301
menu_bar->Bind(wxEVT_MENU, [this](wxCommandEvent& event) {
302302
switch (menu_item{ event.GetId() }) {
@@ -345,6 +345,10 @@ wxMenuBar* main_window::make_menu_bar() {
345345
wxLaunchDefaultBrowser("https://github.com/PartStackerCommunity/PartStacker/");
346346
break;
347347
}
348+
case menu_item::issue: {
349+
wxLaunchDefaultBrowser("https://github.com/PartStackerCommunity/PartStacker/issues/new");
350+
break;
351+
}
348352
}
349353
event.Skip();
350354
});
@@ -369,6 +373,7 @@ wxMenuBar* main_window::make_menu_bar() {
369373
auto help_menu = new wxMenu();
370374
help_menu->Append((int)menu_item::about, "&About", "About PartStacker");
371375
help_menu->Append((int)menu_item::website, "Visit &website", "Open PartStacker GitHub");
376+
help_menu->Append((int)menu_item::issue, "&Report an issue", "Create new issue on GitHub");
372377
menu_bar->Append(help_menu, "&Help");
373378

374379
return menu_bar;

0 commit comments

Comments
 (0)