/// <summary> /// Asks for feedback /// </summary> private void AskForFeedback() { if (Config.TryReadBool("DisableFeedbackNotifications", out bool askForFeedback)) { if (!askForFeedback) { return; } FeedbackFetcher f = new FeedbackFetcher(); f.Activate(); } else { Config.AddVariable("DisableFeedbackNotifications", false); } }
/// <summary> /// Asks for feedback /// </summary> void AskForFeedback() { bool disableFeedback = false; //Set default value if (!Config.TryReadBool("DisableFeedbackNotifications", out disableFeedback)) { disableFeedback = false; Config.AddVariable("DisableFeedbackNotifications", disableFeedback); } //Ask for feedback if (!disableFeedback) { FeedbackFetcher f = new FeedbackFetcher(); f.Activate(); } }