mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 08:02:44 +00:00 
			
		
		
		
	FontEditor: Simplify initialization by disabling widget callbacks
Reduces some complexity dealing with callback effects and fixes redundant calls to update_title and erroneously set glyph widths.
This commit is contained in:
		
							parent
							
								
									92fffc3abc
								
							
						
					
					
						commit
						ca6cb6cec3
					
				
					 3 changed files with 22 additions and 26 deletions
				
			
		|  | @ -25,8 +25,8 @@ void GlyphMapWidget::initialize(Gfx::BitmapFont& mutable_font) | |||
|     if (m_font == mutable_font) | ||||
|         return; | ||||
|     m_font = mutable_font; | ||||
|     m_selected_glyph = 0; | ||||
|     vertical_scrollbar().set_step(font().glyph_height() + m_vertical_spacing); | ||||
|     set_selected_glyph('A'); | ||||
| } | ||||
| 
 | ||||
| void GlyphMapWidget::resize_event(GUI::ResizeEvent& event) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 thankyouverycool
						thankyouverycool