Additional Compatibility code.

This commit is contained in:
Brett Hewitson 2021-12-03 11:09:29 +10:00
parent b45a855b42
commit b771a37592
5 changed files with 44 additions and 53 deletions

View file

@ -23,22 +23,7 @@ namespace ServerManagerTool.Plugin.Discord.Windows
internal ConfigProfileWindow(DiscordPlugin plugin, ConfigProfile profile)
{
InitializeComponent();
try
{
ResourceUtils.UpdateResourceDictionary(this, plugin.LanguageCode);
}
catch (MissingFieldException)
{
// do nothing, most likely they are using an older version of a server manager
}
catch (MissingMethodException)
{
// do nothing, most likely they are using an older version of a server manager
}
catch (Exception)
{
// do nothing, most likely they are using an older version of a server manager
}
WindowUtils.UpdateResourceDictionary(this, plugin.LanguageCode);
this.Plugin = plugin ?? new DiscordPlugin();
this.OriginalProfile = profile;