mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[build][settings]Disable experimentation code (#33452)
* [build][settings]Disable experimentation code * Update src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeShellPage.xaml.cs Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com> * Update src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeShellPage.xaml.cs Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com> * Update src/settings-ui/Settings.UI/SettingsXAML/OOBE/Views/OobeShellPage.xaml.cs --------- Co-authored-by: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com>
This commit is contained in:
@@ -76,7 +76,7 @@ extends:
|
|||||||
NODE_OPTIONS: --max_old_space_size=16384
|
NODE_OPTIONS: --max_old_space_size=16384
|
||||||
IsPipeline: 1 # The installer uses this to detect whether it should pick up localizations
|
IsPipeline: 1 # The installer uses this to detect whether it should pick up localizations
|
||||||
SkipCppCodeAnalysis: 1 # Skip the code analysis to speed up release CI. It runs on PR CI, anyway
|
SkipCppCodeAnalysis: 1 # Skip the code analysis to speed up release CI. It runs on PR CI, anyway
|
||||||
IsExperimentationLive: 1 # The build and installer use this to turn on experimentation
|
# IsExperimentationLive: 1 # The build and installer use this to turn on experimentation
|
||||||
steps:
|
steps:
|
||||||
- checkout: self
|
- checkout: self
|
||||||
clean: true
|
clean: true
|
||||||
|
|||||||
@@ -5,7 +5,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using AllExperiments;
|
|
||||||
using global::PowerToys.GPOWrapper;
|
using global::PowerToys.GPOWrapper;
|
||||||
using Microsoft.PowerToys.Settings.UI.Library;
|
using Microsoft.PowerToys.Settings.UI.Library;
|
||||||
using Microsoft.PowerToys.Settings.UI.OOBE.Enums;
|
using Microsoft.PowerToys.Settings.UI.OOBE.Enums;
|
||||||
@@ -52,13 +51,16 @@ namespace Microsoft.PowerToys.Settings.UI.OOBE.Views
|
|||||||
|
|
||||||
private static ISettingsUtils settingsUtils = new SettingsUtils();
|
private static ISettingsUtils settingsUtils = new SettingsUtils();
|
||||||
|
|
||||||
private bool ExperimentationToggleSwitchEnabled { get; set; } = true;
|
/* NOTE: Experimentation for OOBE is currently turned off on server side. Keeping this code in a comment to allow future experiments.
|
||||||
|
private bool ExperimentationToggleSwitchEnabled { get; set; } = true;
|
||||||
|
*/
|
||||||
|
|
||||||
public OobeShellPage()
|
public OobeShellPage()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
ExperimentationToggleSwitchEnabled = SettingsRepository<GeneralSettings>.GetInstance(settingsUtils).SettingsConfig.EnableExperimentation;
|
// NOTE: Experimentation for OOBE is currently turned off on server side. Keeping this code in a comment to allow future experiments.
|
||||||
|
// ExperimentationToggleSwitchEnabled = SettingsRepository<GeneralSettings>.GetInstance(settingsUtils).SettingsConfig.EnableExperimentation;
|
||||||
SetTitleBar();
|
SetTitleBar();
|
||||||
DataContext = ViewModel;
|
DataContext = ViewModel;
|
||||||
OobeShellHandler = this;
|
OobeShellHandler = this;
|
||||||
@@ -230,7 +232,8 @@ namespace Microsoft.PowerToys.Settings.UI.OOBE.Views
|
|||||||
{
|
{
|
||||||
switch (selectedItem.Tag)
|
switch (selectedItem.Tag)
|
||||||
{
|
{
|
||||||
case "Overview":
|
case "Overview": NavigationFrame.Navigate(typeof(OobeOverview)); break;
|
||||||
|
/* NOTE: Experimentation for OOBE is currently turned off on server side. Keeping this code in a comment to allow future experiments.
|
||||||
if (ExperimentationToggleSwitchEnabled && GPOWrapper.GetAllowExperimentationValue() != GpoRuleConfigured.Disabled)
|
if (ExperimentationToggleSwitchEnabled && GPOWrapper.GetAllowExperimentationValue() != GpoRuleConfigured.Disabled)
|
||||||
{
|
{
|
||||||
switch (AllExperiments.Experiments.LandingPageExperiment)
|
switch (AllExperiments.Experiments.LandingPageExperiment)
|
||||||
@@ -250,7 +253,7 @@ namespace Microsoft.PowerToys.Settings.UI.OOBE.Views
|
|||||||
NavigationFrame.Navigate(typeof(OobeOverview));
|
NavigationFrame.Navigate(typeof(OobeOverview));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
case "WhatsNew": NavigationFrame.Navigate(typeof(OobeWhatsNew)); break;
|
case "WhatsNew": NavigationFrame.Navigate(typeof(OobeWhatsNew)); break;
|
||||||
case "AdvancedPaste": NavigationFrame.Navigate(typeof(OobeAdvancedPaste)); break;
|
case "AdvancedPaste": NavigationFrame.Navigate(typeof(OobeAdvancedPaste)); break;
|
||||||
case "AlwaysOnTop": NavigationFrame.Navigate(typeof(OobeAlwaysOnTop)); break;
|
case "AlwaysOnTop": NavigationFrame.Navigate(typeof(OobeAlwaysOnTop)); break;
|
||||||
|
|||||||
Reference in New Issue
Block a user