Persistent plugin feedback contact details (#934)

This commit is contained in:
Lilith 2022-07-24 17:18:56 -04:00 committed by GitHub
parent d2ecddbf35
commit b6a85bf4d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View file

@ -332,6 +332,11 @@ namespace Dalamud.Configuration.Internal
/// </summary>
public bool ShowDevBarInfo { get; set; } = true;
/// <summary>
/// Gets or sets the last-used contact details for the plugin feedback form.
/// </summary>
public string LastFeedbackContactDetails { get; set; } = string.Empty;
/// <summary>
/// Load a configuration from the provided path.
/// </summary>

View file

@ -666,6 +666,11 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
Log.Error("FeedbackPlugin was null.");
}
if (!string.IsNullOrWhiteSpace(this.feedbackModalContact))
{
Service<DalamudConfiguration>.Get().LastFeedbackContactDetails = this.feedbackModalContact;
}
ImGui.CloseCurrentPopup();
}
}
@ -681,7 +686,7 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
if (!this.feedbackModalOnNextFrameDontClear)
{
this.feedbackModalBody = string.Empty;
this.feedbackModalContact = string.Empty;
this.feedbackModalContact = Service<DalamudConfiguration>.Get().LastFeedbackContactDetails;
this.feedbackModalIncludeException = false;
this.feedbackIsAnonymous = false;
}