fix: event naming style in DalamudPluginInterface.cs (closes #458)

This commit is contained in:
goat 2021-08-23 08:30:23 +02:00
parent 84f516b11e
commit b1a596a598
No known key found for this signature in database
GPG key ID: F18F057873895461
4 changed files with 14 additions and 14 deletions

View file

@ -41,7 +41,7 @@ namespace Dalamud
}
/// <summary>
/// Delegate for the <see cref="OnLocalizationChanged"/> event that occurs when the language is changed.
/// Delegate for the <see cref="Localization.LocalizationChanged"/> event that occurs when the language is changed.
/// </summary>
/// <param name="langCode">The language code of the new language.</param>
public delegate void LocalizationChangedDelegate(string langCode);
@ -49,7 +49,7 @@ namespace Dalamud
/// <summary>
/// Event that occurs when the language is changed.
/// </summary>
public event LocalizationChangedDelegate OnLocalizationChanged;
public event LocalizationChangedDelegate LocalizationChanged;
/// <summary>
/// Search the set-up localization data for the provided assembly for the given string key and return it.
@ -95,7 +95,7 @@ namespace Dalamud
/// </summary>
public void SetupWithFallbacks()
{
this.OnLocalizationChanged?.Invoke(FallbackLangCode);
this.LocalizationChanged?.Invoke(FallbackLangCode);
Loc.SetupWithFallbacks(this.assembly);
}
@ -111,7 +111,7 @@ namespace Dalamud
return;
}
this.OnLocalizationChanged?.Invoke(langCode);
this.LocalizationChanged?.Invoke(langCode);
try
{