Merge branch 'net5' of github.com:goatcorp/Dalamud into net5

This commit is contained in:
goat 2022-07-25 00:28:13 +02:00
commit 00839640b3
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
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;
}