mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	Userland: Remember window state of productivity / editor applications
This commit is contained in:
		
							parent
							
								
									04ee15a5ad
								
							
						
					
					
						commit
						5d37e1c220
					
				
					 17 changed files with 34 additions and 16 deletions
				
			
		|  | @ -26,7 +26,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
|     auto app_icon = GUI::Icon::default_icon("app-sql-studio"sv); | ||||
| 
 | ||||
|     auto window = GUI::Window::construct(); | ||||
|     window->resize(640, 480); | ||||
|     window->restore_size_and_position("SQLStudio"sv, "Window"sv, { { 640, 480 } }); | ||||
|     window->save_size_and_position_on_close("SQLStudio"sv, "Window"sv); | ||||
|     window->set_icon(app_icon.bitmap_for_size(16)); | ||||
|     window->set_title("SQL Studio"); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Bastiaan van der Plaat
						Bastiaan van der Plaat