mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:57:34 +00:00
PixelPaint: Add link to manpage
Add a link to the manpage in the Help menu.
This commit is contained in:
parent
e0ea5a86e0
commit
30ea7b27d4
3 changed files with 6 additions and 1 deletions
|
@ -21,6 +21,7 @@
|
|||
#include <LibConfig/Client.h>
|
||||
#include <LibCore/Debounce.h>
|
||||
#include <LibCore/MimeData.h>
|
||||
#include <LibDesktop/Launcher.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/Clipboard.h>
|
||||
#include <LibGUI/Icon.h>
|
||||
|
@ -1166,6 +1167,9 @@ ErrorOr<void> MainWidget::initialize_menubar(GUI::Window& window)
|
|||
|
||||
auto help_menu = window.add_menu("&Help"_string);
|
||||
help_menu->add_action(GUI::CommonActions::make_command_palette_action(&window));
|
||||
help_menu->add_action(GUI::CommonActions::make_help_action([](auto&) {
|
||||
Desktop::Launcher::open(URL::create_with_file_scheme("/usr/share/man/man1/Applications/PixelPaint.md"), "/bin/Help");
|
||||
}));
|
||||
help_menu->add_action(GUI::CommonActions::make_about_action("Pixel Paint"_string, GUI::Icon::default_icon("app-pixel-paint"sv), &window));
|
||||
|
||||
m_levels_dialog_action = GUI::Action::create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue