Fix inconsistent capitalization of "hq"

pull/32/head
Miepee 4 years ago
parent b6aad99027
commit aa56bca48a

@ -390,8 +390,8 @@ public partial class MainForm : Form
return; return;
} }
Progress<int> progressIndicator = new Progress<int>(UpdateProgressBar); Progress<int> progressIndicator = new Progress<int>(UpdateProgressBar);
bool useHqMusic = hqMusicPCCheck.Checked.Value; bool useHQMusic = hqMusicPCCheck.Checked.Value;
await Task.Run(() => Profile.InstallProfile(profileList[profileIndex.Value], useHqMusic, progressIndicator)); await Task.Run(() => Profile.InstallProfile(profileList[profileIndex.Value], useHQMusic, progressIndicator));
// This is just for visuals because the average windows end user will ask why it doesn't go to the end otherwise. // This is just for visuals because the average windows end user will ask why it doesn't go to the end otherwise.
if (OS.IsWindows) if (OS.IsWindows)
Thread.Sleep(500); Thread.Sleep(500);
@ -493,10 +493,10 @@ public partial class MainForm : Form
UpdateStateMachine(); UpdateStateMachine();
EnableProgressBar(); EnableProgressBar();
bool useHqMusic = hqMusicAndroidCheck.Checked.Value; bool useHQMusic = hqMusicAndroidCheck.Checked.Value;
Progress<int> progressIndicator = new Progress<int>(UpdateProgressBar); Progress<int> progressIndicator = new Progress<int>(UpdateProgressBar);
await Task.Run(() => Profile.CreateAPK(profileList[profileIndex.Value], useHqMusic, progressIndicator)); await Task.Run(() => Profile.CreateAPK(profileList[profileIndex.Value], useHQMusic, progressIndicator));
SetApkButtonState(ApkButtonState.Create); SetApkButtonState(ApkButtonState.Create);
DisableProgressBar(); DisableProgressBar();
@ -570,14 +570,14 @@ public partial class MainForm : Form
} }
/// <summary>Gets called when <see cref="hqMusicPCCheck"/> gets clicked and writes its new value to the config.</summary> /// <summary>Gets called when <see cref="hqMusicPCCheck"/> gets clicked and writes its new value to the config.</summary>
private void HqMusicPCCheckChanged(object sender, EventArgs e) private void HQMusicPCCheckChanged(object sender, EventArgs e)
{ {
log.Info("PC HQ Music option has been changed to " + hqMusicPCCheck.Checked); log.Info("PC HQ Music option has been changed to " + hqMusicPCCheck.Checked);
WriteToConfig("MusicHQPC", hqMusicPCCheck.Checked); WriteToConfig("MusicHQPC", hqMusicPCCheck.Checked);
} }
/// <summary>Gets called when <see cref="hqMusicAndroidCheck"/> gets clicked and writes its new value to the config.</summary> /// <summary>Gets called when <see cref="hqMusicAndroidCheck"/> gets clicked and writes its new value to the config.</summary>
private void HqMusicAndroidCheckChanged(object sender, EventArgs e) private void HQMusicAndroidCheckChanged(object sender, EventArgs e)
{ {
log.Info("Android HQ Music option has been changed to " + hqMusicAndroidCheck.Checked); log.Info("Android HQ Music option has been changed to " + hqMusicAndroidCheck.Checked);
WriteToConfig("MusicHQAndroid", hqMusicAndroidCheck.Checked); WriteToConfig("MusicHQAndroid", hqMusicAndroidCheck.Checked);

@ -314,7 +314,7 @@ public partial class MainForm : Form
//TODO: this needs a new tooltip //TODO: this needs a new tooltip
Bitmap matrixIcon = new Bitmap(Resources.matrixIcon48); Bitmap matrixIcon = new Bitmap(Resources.matrixIcon48);
var matrixButton = new ImageButton { ToolTip = Text.DiscordToolTip, Image = matrixIcon }; var matrixButton = new ImageButton { ToolTip = Text.MatrixToolTip, Image = matrixIcon };
matrixButton.Click += (_, _) => CrossPlatformOperations.OpenURL("https://matrix.to/#/#am2r-space:matrix.org"); matrixButton.Click += (_, _) => CrossPlatformOperations.OpenURL("https://matrix.to/#/#am2r-space:matrix.org");
@ -782,8 +782,8 @@ public partial class MainForm : Form
languageDropDown.SelectedIndexChanged += LanguageDropDownSelectedIndexChanged; languageDropDown.SelectedIndexChanged += LanguageDropDownSelectedIndexChanged;
autoUpdateAM2RCheck.CheckedChanged += AutoUpdateAM2RCheckChanged; autoUpdateAM2RCheck.CheckedChanged += AutoUpdateAM2RCheckChanged;
autoUpdateLauncherCheck.CheckedChanged += AutoUpdateLauncherCheckChanged; autoUpdateLauncherCheck.CheckedChanged += AutoUpdateLauncherCheckChanged;
hqMusicAndroidCheck.CheckedChanged += HqMusicAndroidCheckChanged; hqMusicAndroidCheck.CheckedChanged += HQMusicAndroidCheckChanged;
hqMusicPCCheck.CheckedChanged += HqMusicPCCheckChanged; hqMusicPCCheck.CheckedChanged += HQMusicPCCheckChanged;
customMirrorCheck.CheckedChanged += CustomMirrorCheckChanged; customMirrorCheck.CheckedChanged += CustomMirrorCheckChanged;
apkButton.Click += ApkButtonClickEvent; apkButton.Click += ApkButtonClickEvent;
apkButton.LoadComplete += (_, _) => UpdateApkState(); apkButton.LoadComplete += (_, _) => UpdateApkState();

@ -23,7 +23,6 @@ public class LauncherConfigXML
[XmlAttribute("Language")] [XmlAttribute("Language")]
public string Language public string Language
{ get; set; } { get; set; }
//TODO: use of "HQ" capitalization should be consistent within project!
/// <summary>Indicates whether or not to use High-quality music when patching to PC. Used for <see cref="MainForm.hqMusicPCCheck"/></summary> /// <summary>Indicates whether or not to use High-quality music when patching to PC. Used for <see cref="MainForm.hqMusicPCCheck"/></summary>
[XmlAttribute("MusicHQPC")] [XmlAttribute("MusicHQPC")]
public bool MusicHQPC public bool MusicHQPC

Loading…
Cancel
Save