private void SettingsApplied() { // execute once when leaving the stock setting screen if (morseSettings.morseConf) { // reset the more morse conf toggle to false asap morseSettings.morseConf = false; morseSettings.Save(HighLogic.CurrentGame.config); showSettingsWindow = true; } // backup the original settings ParseToBackup(); }
private void SettingsApplied() { // execute once when leaving the stock setting screen if (HighLogic.LoadedScene == GameScenes.FLIGHT || HighLogic.LoadedScene == GameScenes.SPACECENTER || HighLogic.LoadedScene == GameScenes.TRACKSTATION) { #if false if (morseSettings.morseConf) { // reset the more morse conf toggle to false asap morseSettings.morseConf = false; morseSettings.Save(HighLogic.CurrentGame.config); showSettingsWindow = true; } // backup the original settings ParseToBackup(); #endif } }