fixed a bug that prevented the plugin to load the configurationon game start

main 0.2.4.0
Camille 2022-01-19 20:44:03 +01:00
parent a954d07fb7
commit f0f6b6ae81
3 changed files with 11 additions and 6 deletions

View File

@ -17,10 +17,8 @@ namespace CurrencyAlert
[NonSerialized]
private DalamudPluginInterface? pluginInterface;
public void Initialize(DalamudPluginInterface pluginInterface)
public Configuration()
{
this.pluginInterface = pluginInterface;
EnumHelper.Each<Currency>(currency =>
{
this.AlertEnabled[currency] = true;
@ -29,6 +27,11 @@ namespace CurrencyAlert
});
}
public void Initialize(DalamudPluginInterface pluginInterface)
{
this.pluginInterface = pluginInterface;
}
public void Save()
{
this.pluginInterface!.SavePluginConfig(this);

View File

@ -3,7 +3,7 @@
<PropertyGroup>
<Authors></Authors>
<Company></Company>
<Version>0.2.3.0</Version>
<Version>0.2.4.0</Version>
<Description>Currency Alert</Description>
<Copyright></Copyright>
<PackageProjectUrl>https://github.com/Lharz/xiv-currency-alert</PackageProjectUrl>

View File

@ -1,13 +1,15 @@
{
"Author": "Lharz",
"Name": "Currency Alert",
"Punchline": "Configure alerts thresholds for various currencies.",
"Punchline": "Lets you setup alerts upon reaching certain currencies amount (such as Poetics or PVP marks).",
"Description": "/currencyalert: show the configuration panel.",
"InternalName": "currencyAlert",
"ApplicableVersion": "any",
"Tags": [
"plugin",
"currency",
"tomestones"
"tomestones",
"utility",
"other"
]
}