mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:22:45 +00:00 
			
		
		
		
	HexEditor: Fix nullptr pass to AboutDialog and clean up menus
Refactors menubar creation to avoid a null parent window during construction; moves search options to the more traditional edit menu; creates and exclusive action group for bytes per row Fixes #5177 in part
This commit is contained in:
		
							parent
							
								
									fb5cdc670f
								
							
						
					
					
						commit
						a2e935e7a2
					
				
					 3 changed files with 39 additions and 27 deletions
				
			
		|  | @ -26,6 +26,7 @@ | |||
| 
 | ||||
| #include "HexEditorWidget.h" | ||||
| #include <LibGUI/Icon.h> | ||||
| #include <LibGUI/MenuBar.h> | ||||
| #include <LibGfx/Bitmap.h> | ||||
| #include <stdio.h> | ||||
| 
 | ||||
|  | @ -57,6 +58,10 @@ int main(int argc, char** argv) | |||
|         return GUI::Window::CloseRequestDecision::StayOpen; | ||||
|     }; | ||||
| 
 | ||||
|     auto menubar = GUI::MenuBar::construct(); | ||||
|     hex_editor_widget.initialize_menubar(menubar); | ||||
|     app->set_menubar(menubar); | ||||
| 
 | ||||
|     window->show(); | ||||
|     window->set_icon(app_icon.bitmap_for_size(16)); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 thankyouverycool
						thankyouverycool