1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

PDFViewer: Remove unnecessary ternary operation

This commit is contained in:
Rodrigo Tobar 2022-12-15 00:47:48 +08:00 committed by Andreas Kling
parent 6d0869c14a
commit 124ab5bec6

View file

@ -226,7 +226,7 @@ void PDFViewerWidget::initialize_toolbar(GUI::Toolbar& toolbar)
auto open_outline_action = GUI::Action::create(
"Toggle &Sidebar", { Mod_Ctrl, Key_S }, Gfx::Bitmap::try_load_from_file("/res/icons/16x16/sidebar.png"sv).release_value_but_fixme_should_propagate_errors(), [&](auto&) {
m_sidebar_open = !m_sidebar_open;
m_sidebar->set_visible(m_sidebar_open ? true : false);
m_sidebar->set_visible(m_sidebar_open);
},
nullptr);
open_outline_action->set_enabled(false);