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

View File

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

View File

@ -1,13 +1,15 @@
{ {
"Author": "Lharz", "Author": "Lharz",
"Name": "Currency Alert", "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.", "Description": "/currencyalert: show the configuration panel.",
"InternalName": "currencyAlert", "InternalName": "currencyAlert",
"ApplicableVersion": "any", "ApplicableVersion": "any",
"Tags": [ "Tags": [
"plugin", "plugin",
"currency", "currency",
"tomestones" "tomestones",
"utility",
"other"
] ]
} }