mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-12 09:20:36 +00:00
PDFViewer: Remove an unneeded indirection
No behavior change.
This commit is contained in:
parent
d9267a388d
commit
475cef8afd
Notes:
sideshowbarker
2024-07-17 04:32:07 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/475cef8afd Pull-request: https://github.com/SerenityOS/serenity/pull/22887 Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ ErrorOr<void> PDFViewerWidget::initialize_menubar(GUI::Window& window)
|
|||
m_viewer->set_show_images(action.is_checked());
|
||||
});
|
||||
toggle_show_images->set_checked(m_viewer->show_images());
|
||||
debug_menu->add_action(*toggle_show_images);
|
||||
debug_menu->add_action(toggle_show_images);
|
||||
auto toggle_clip_images = GUI::Action::create_checkable("Clip I&mages", [&](auto& action) {
|
||||
m_viewer->set_clip_images(action.is_checked());
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue