mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:52:45 +00:00 
			
		
		
		
	PDFViewer: Remove unnecessary ternary operation
This commit is contained in:
		
							parent
							
								
									6d0869c14a
								
							
						
					
					
						commit
						124ab5bec6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -226,7 +226,7 @@ void PDFViewerWidget::initialize_toolbar(GUI::Toolbar& toolbar) | ||||||
|     auto open_outline_action = GUI::Action::create( |     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&) { |         "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_open = !m_sidebar_open; | ||||||
|             m_sidebar->set_visible(m_sidebar_open ? true : false); |             m_sidebar->set_visible(m_sidebar_open); | ||||||
|         }, |         }, | ||||||
|         nullptr); |         nullptr); | ||||||
|     open_outline_action->set_enabled(false); |     open_outline_action->set_enabled(false); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Rodrigo Tobar
						Rodrigo Tobar