mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:22:45 +00:00 
			
		
		
		
	LibGUI+Userland: Make Dialog::ExecResult an enum class
This commit is contained in:
		
							parent
							
								
									1f82beded3
								
							
						
					
					
						commit
						cdffe556c8
					
				
					 90 changed files with 232 additions and 232 deletions
				
			
		|  | @ -247,7 +247,7 @@ void BrowserWindow::build_menus() | |||
|     m_change_homepage_action = GUI::Action::create( | ||||
|         "Set Homepage URL...", g_icon_bag.go_home, [this](auto&) { | ||||
|             auto homepage_url = Config::read_string("Browser", "Preferences", "Home", "about:blank"); | ||||
|             if (GUI::InputBox::show(this, homepage_url, "Enter URL", "Change homepage URL") == GUI::InputBox::ExecOK) { | ||||
|             if (GUI::InputBox::show(this, homepage_url, "Enter URL", "Change homepage URL") == GUI::InputBox::ExecResult::OK) { | ||||
|                 if (URL(homepage_url).is_valid()) { | ||||
|                     Config::write_string("Browser", "Preferences", "Home", homepage_url); | ||||
|                     Browser::g_home_url = homepage_url; | ||||
|  | @ -373,7 +373,7 @@ void BrowserWindow::build_menus() | |||
| 
 | ||||
|     auto custom_user_agent = GUI::Action::create_checkable("Custom...", [this](auto& action) { | ||||
|         String user_agent; | ||||
|         if (GUI::InputBox::show(this, user_agent, "Enter User Agent:", "Custom User Agent") != GUI::InputBox::ExecOK || user_agent.is_empty() || user_agent.is_null()) { | ||||
|         if (GUI::InputBox::show(this, user_agent, "Enter User Agent:", "Custom User Agent") != GUI::InputBox::ExecResult::OK || user_agent.is_empty() || user_agent.is_null()) { | ||||
|             m_disable_user_agent_spoofing->activate(); | ||||
|             return; | ||||
|         } | ||||
|  | @ -455,7 +455,7 @@ ErrorOr<void> BrowserWindow::load_search_engines(GUI::Menu& settings_menu) | |||
| 
 | ||||
|     auto custom_search_engine_action = GUI::Action::create_checkable("Custom...", [&](auto& action) { | ||||
|         String search_engine; | ||||
|         if (GUI::InputBox::show(this, search_engine, "Enter URL template:", "Custom Search Engine", "https://host/search?q={}") != GUI::InputBox::ExecOK || search_engine.is_empty()) { | ||||
|         if (GUI::InputBox::show(this, search_engine, "Enter URL template:", "Custom Search Engine", "https://host/search?q={}") != GUI::InputBox::ExecResult::OK || search_engine.is_empty()) { | ||||
|             m_disable_search_engine_action->activate(); | ||||
|             return; | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins