UI/AppKit: Re-order field designators to be in declaration order

This is required by C++, but for some reason, only started causing a
compiler error today.
This commit is contained in:
Timothy Flynn 2024-09-07 14:46:06 -04:00 committed by Andreas Kling
commit 9cd34a7d80
Notes: github-actions[bot] 2024-09-08 07:49:15 +00:00

View file

@ -93,8 +93,8 @@ static NSString* const TOOLBAR_TAB_OVERVIEW_IDENTIFIER = @"ToolbarTabOverviewIde
[self.toolbar setSizeMode:NSToolbarSizeModeRegular]; [self.toolbar setSizeMode:NSToolbarSizeModeRegular];
m_settings = { m_settings = {
.block_popups = WebView::Application::chrome_options().allow_popups == WebView::AllowPopups::Yes ? NO : YES,
.scripting_enabled = WebView::Application::chrome_options().disable_scripting == WebView::DisableScripting::Yes ? NO : YES, .scripting_enabled = WebView::Application::chrome_options().disable_scripting == WebView::DisableScripting::Yes ? NO : YES,
.block_popups = WebView::Application::chrome_options().allow_popups == WebView::AllowPopups::Yes ? NO : YES,
}; };
if (auto const& user_agent_preset = WebView::Application::web_content_options().user_agent_preset; user_agent_preset.has_value()) if (auto const& user_agent_preset = WebView::Application::web_content_options().user_agent_preset; user_agent_preset.has_value())