From 09a8228459acaea836277bb63c0dd2196559b0e8 Mon Sep 17 00:00:00 2001 From: Antoine Aflalo Date: Sun, 9 May 2021 19:13:33 -0400 Subject: [PATCH] boost(Foreground::Switch): Disable switching foreground application for everybody. Feature should only be on for people that needs it. This feature causes more issue than anything. See #636 --- .../Framework/Configuration/SoundSwitchConfiguration.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SoundSwitch/Framework/Configuration/SoundSwitchConfiguration.cs b/SoundSwitch/Framework/Configuration/SoundSwitchConfiguration.cs index f3fb01d883..accce8dbe6 100644 --- a/SoundSwitch/Framework/Configuration/SoundSwitchConfiguration.cs +++ b/SoundSwitch/Framework/Configuration/SoundSwitchConfiguration.cs @@ -38,7 +38,7 @@ public SoundSwitchConfiguration() { // Basic Settings FirstRun = true; - SwitchForegroundProgram = true; + SwitchForegroundProgram = false; // Audio Settings ChangeCommunications = false; @@ -187,6 +187,13 @@ public bool Migrate() migrated = true; } + if (!MigratedFields.Contains($"{nameof(SwitchForegroundProgram)}_force_off")) + { + SwitchForegroundProgram = false; + MigratedFields.Add($"{nameof(SwitchForegroundProgram)}_force_off"); + migrated = true; + } + return migrated; #pragma warning restore 612 }