diff options
author | Karol Kosek <krkk@serenityos.org> | 2023-04-16 12:20:42 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-04-19 07:59:54 +0200 |
commit | 51bd9ca037ec31c7fcc811bb3e97f2518d843b98 (patch) | |
tree | 6ddcf1494b59682d55951fffd9877d45d173d414 /Userland/Applications/PDFViewer | |
parent | 969543a847c7792cb5ebe967c44b744bc24fb2cb (diff) | |
download | serenity-51bd9ca037ec31c7fcc811bb3e97f2518d843b98.zip |
LibGUI+Userland: Make Menu::*add_submmenu take name using new string
Diffstat (limited to 'Userland/Applications/PDFViewer')
-rw-r--r-- | Userland/Applications/PDFViewer/PDFViewerWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp index 54ac99dd69..6b3dc9b412 100644 --- a/Userland/Applications/PDFViewer/PDFViewerWidget.cpp +++ b/Userland/Applications/PDFViewer/PDFViewerWidget.cpp @@ -228,7 +228,7 @@ void PDFViewerWidget::initialize_menubar(GUI::Window& window) auto& view_menu = window.add_menu("&View"_short_string); view_menu.add_action(*m_toggle_sidebar_action); view_menu.add_separator(); - auto& view_mode_menu = view_menu.add_submenu("View &Mode"); + auto& view_mode_menu = view_menu.add_submenu("View &Mode"_string.release_value_but_fixme_should_propagate_errors()); view_mode_menu.add_action(*m_page_view_mode_single); view_mode_menu.add_action(*m_page_view_mode_multiple); view_menu.add_separator(); |