mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:22:46 +00:00 
			
		
		
		
	LibGUI: Don't show empty ComboBox windows
This commit is contained in:
		
							parent
							
								
									a0de3860cc
								
							
						
					
					
						commit
						aa8e7aba42
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -103,6 +103,8 @@ ComboBox::ComboBox() | ||||||
|     m_open_button->set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/downward-triangle.png"sv).release_value_but_fixme_should_propagate_errors()); |     m_open_button->set_icon(Gfx::Bitmap::try_load_from_file("/res/icons/16x16/downward-triangle.png"sv).release_value_but_fixme_should_propagate_errors()); | ||||||
|     m_open_button->set_focus_policy(GUI::FocusPolicy::NoFocus); |     m_open_button->set_focus_policy(GUI::FocusPolicy::NoFocus); | ||||||
|     m_open_button->on_click = [this](auto) { |     m_open_button->on_click = [this](auto) { | ||||||
|  |         if (!m_list_view->item_count()) | ||||||
|  |             return; | ||||||
|         if (m_list_window->is_visible()) |         if (m_list_window->is_visible()) | ||||||
|             close(); |             close(); | ||||||
|         else |         else | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 thankyouverycool
						thankyouverycool