private async void editFVariables_Click(object sender, EventArgs e) { bool allow = true; // Create a warning prompt if the user hasn't disabled this warning. var warningDisabled = Program.GetBool("Disable Flag Warning"); if (!warningDisabled) { SystemSounds.Hand.Play(); allow = false; Form warningPrompt = createFlagWarningPrompt(); warningPrompt.ShowDialog(); DialogResult result = warningPrompt.DialogResult; if (result == DialogResult.Yes) { Program.SetValue("Disable Flag Warning", warningPrompt.Enabled); allow = true; } } if (allow) { string branch = (string)branchSelect.SelectedItem; Enabled = false; UseWaitCursor = true; ClientVersionInfo info = await RobloxStudioInstaller.GetCurrentVersionInfo(branch); Hide(); await RobloxStudioInstaller.BringUpToDate(branch, info.Guid, "Some newer flags might be missing."); FlagEditor editor = new FlagEditor(branch); editor.ShowDialog(); Show(); BringToFront(); Enabled = true; UseWaitCursor = false; } }
private async void editExplorerIcons_Click(object sender, EventArgs e) { Enabled = false; UseWaitCursor = true; string branch = (string)branchSelect.SelectedItem; ClientVersionInfo info = await RobloxStudioInstaller.GetCurrentVersionInfo(branch); Hide(); await RobloxStudioInstaller.BringUpToDate(branch, info.Guid, "The explorer icons may have received an update."); var editor = new ExplorerIconEditor(branch); editor.ShowDialog(); Show(); BringToFront(); Enabled = true; UseWaitCursor = false; }