mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Persistent plugin feedback contact details (#934)
This commit is contained in:
parent
d2ecddbf35
commit
b6a85bf4d0
2 changed files with 11 additions and 1 deletions
|
|
@ -332,6 +332,11 @@ namespace Dalamud.Configuration.Internal
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool ShowDevBarInfo { get; set; } = true;
|
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>
|
/// <summary>
|
||||||
/// Load a configuration from the provided path.
|
/// Load a configuration from the provided path.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
||||||
|
|
@ -666,6 +666,11 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
|
||||||
Log.Error("FeedbackPlugin was null.");
|
Log.Error("FeedbackPlugin was null.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(this.feedbackModalContact))
|
||||||
|
{
|
||||||
|
Service<DalamudConfiguration>.Get().LastFeedbackContactDetails = this.feedbackModalContact;
|
||||||
|
}
|
||||||
|
|
||||||
ImGui.CloseCurrentPopup();
|
ImGui.CloseCurrentPopup();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -681,7 +686,7 @@ namespace Dalamud.Interface.Internal.Windows.PluginInstaller
|
||||||
if (!this.feedbackModalOnNextFrameDontClear)
|
if (!this.feedbackModalOnNextFrameDontClear)
|
||||||
{
|
{
|
||||||
this.feedbackModalBody = string.Empty;
|
this.feedbackModalBody = string.Empty;
|
||||||
this.feedbackModalContact = string.Empty;
|
this.feedbackModalContact = Service<DalamudConfiguration>.Get().LastFeedbackContactDetails;
|
||||||
this.feedbackModalIncludeException = false;
|
this.feedbackModalIncludeException = false;
|
||||||
this.feedbackIsAnonymous = false;
|
this.feedbackIsAnonymous = false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue