Skip to content

Commit

Permalink
PDFViewer: Remove an unneeded indirection
Browse files Browse the repository at this point in the history
No behavior change.
  • Loading branch information
nico committed Jan 21, 2024
1 parent 54de73e commit 02bad3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Applications/PDFViewer/PDFViewerWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
});
Expand Down

0 comments on commit 02bad3b

Please sign in to comment.