- if (userAgent == UserAgentHelper::PRIVACY_BROWSER_USER_AGENT) userAgentPrivacyBrowserActionPointer->setChecked(true); // Privacy Browser.
- else if (userAgent == UserAgentHelper::FIREFOX_LINUX_USER_AGENT) userAgentFirefoxLinuxActionPointer->setChecked(true); // Firefox Linux.
- else if (userAgent == UserAgentHelper::CHROMIUM_LINUX_USER_AGENT) userAgentChromiumLinuxActionPointer->setChecked(true); // Chromium Linux.
- else if (userAgent == UserAgentHelper::FIREFOX_WINDOWS_USER_AGENT) userAgentFirefoxWindowsActionPointer->setChecked(true); // Firefox Windows.
- else if (userAgent == UserAgentHelper::CHROME_WINDOWS_USER_AGENT) userAgentChromeWindowsActionPointer->setChecked(true); // Chrome Windows.
- else if (userAgent == UserAgentHelper::EDGE_WINDOWS_USER_AGENT) userAgentEdgeWindowsActionPointer->setChecked(true); // Edge Windows.
- else if (userAgent == UserAgentHelper::SAFARI_MACOS_USER_AGENT) userAgentSafariMacosActionPointer->setChecked(true); // Safara macOS.
+ if (userAgent == UserAgentHelper::PRIVACY_BROWSER_USER_AGENT) // Privacy Browser.
+ {
+ // Check the Privacy Browser user agent action.
+ userAgentPrivacyBrowserActionPointer->setChecked(true);
+
+ // Update the user agent menu action text.
+ userAgentMenuActionPointer->setText(i18nc("The main user agent menu action", "User Agent - Privacy Browser"));
+ }
+ else if (userAgent == BrowserView::webEngineDefaultUserAgent) // WebEngine default.
+ {
+ // check the WebEngine default user agent action.
+ userAgentWebEngineDefaultActionPointer->setChecked(true);
+
+ // Update the user agent menu action text.
+ userAgentMenuActionPointer->setText(i18nc("The main user agent menu action", "User Agent - WebEngine default"));
+ }
+ else if (userAgent == UserAgentHelper::FIREFOX_LINUX_USER_AGENT) // Firefox on Linux.
+ {
+ // Check the Firefox on Linux user agent action.
+ userAgentFirefoxLinuxActionPointer->setChecked(true);
+
+ // Update the user agent menu action text.
+ userAgentMenuActionPointer->setText(i18nc("The main user agent menu action", "User Agent - Firefox on Linux"));
+ }
+ else if (userAgent == UserAgentHelper::CHROMIUM_LINUX_USER_AGENT) // Chromium on Linux.
+ {
+ // Check the Chromium on Linux user agent action.
+ userAgentChromiumLinuxActionPointer->setChecked(true);
+
+ // Update the user agent menu action text.
+ userAgentMenuActionPointer->setText(i18nc("The main user agent menu action", "User Agent - Chromium on Linux"));
+ }
+ else if (userAgent == UserAgentHelper::FIREFOX_WINDOWS_USER_AGENT) // Firefox on Windows.
+ {
+ // Check the Firefox on Windows user agent action.
+ userAgentFirefoxWindowsActionPointer->setChecked(true);
+
+ // Update the user agent menu action text.
+ userAgentMenuActionPointer->setText(i18nc("The main user agent menu action", "User Agent - Firefox on Windows"));
+ }
+ else if (userAgent == UserAgentHelper::CHROME_WINDOWS_USER_AGENT) // Chrome on Windows.
+ {
+ // Check the Chrome on Windows user agent action.
+ userAgentChromeWindowsActionPointer->setChecked(true);
+
+ // Update the user agent menu action text.
+ userAgentMenuActionPointer->setText(i18nc("The main user agent menu action", "User Agent - Chrome on Windows"));
+ }
+ else if (userAgent == UserAgentHelper::EDGE_WINDOWS_USER_AGENT) // Edge on Windows.
+ {
+ // Check the Edge on Windows user agent action.
+ userAgentEdgeWindowsActionPointer->setChecked(true);
+
+ // Update the user agent menu action text.
+ userAgentMenuActionPointer->setText(i18nc("The main user agent menu action", "User Agent - Edge on Windows"));
+ }
+ else if (userAgent == UserAgentHelper::SAFARI_MACOS_USER_AGENT) // Safari on macOS.
+ {
+ // Check the Safari on macOS user agent action.
+ userAgentSafariMacosActionPointer->setChecked(true);
+
+ // Update the user agent menu action text.
+ userAgentMenuActionPointer->setText(i18nc("The main user agent menu action", "User Agent - Safari on macOS"));
+ }