mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 15:32:46 +00:00 
			
		
		
		
	Ladybird: Add setting for page to open on new tab
This commit is contained in:
		
							parent
							
								
									80da16e54a
								
							
						
					
					
						commit
						17e9db4fa1
					
				
					 6 changed files with 26 additions and 9 deletions
				
			
		|  | @ -9,6 +9,7 @@ | |||
| #include "Settings.h" | ||||
| #include "Utilities.h" | ||||
| #include "WebContentView.h" | ||||
| #include <AK/OwnPtr.h> | ||||
| #include <Browser/CookieJar.h> | ||||
| #include <Browser/Database.h> | ||||
| #include <LibCore/ArgsParser.h> | ||||
|  | @ -21,7 +22,7 @@ | |||
| #include <LibSQL/SQLClient.h> | ||||
| #include <QApplication> | ||||
| 
 | ||||
| Browser::Settings* s_settings; | ||||
| AK::OwnPtr<Browser::Settings> s_settings; | ||||
| 
 | ||||
| static ErrorOr<void> handle_attached_debugger() | ||||
| { | ||||
|  | @ -106,8 +107,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) | |||
| 
 | ||||
|     auto cookie_jar = TRY(Browser::CookieJar::create(*database)); | ||||
| 
 | ||||
|     s_settings = adopt_own_if_nonnull(new Browser::Settings()); | ||||
|     BrowserWindow window(cookie_jar, webdriver_content_ipc_path); | ||||
|     s_settings = new Browser::Settings(&window); | ||||
|     window.setWindowTitle("Ladybird"); | ||||
|     window.resize(800, 600); | ||||
|     window.show(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Federico Guerinoni
						Federico Guerinoni