mirror of
https://github.com/Tribufu/ServerManagers
synced 2026-08-09 04:31:06 +00:00
Additional Compatibility code.
This commit is contained in:
parent
b45a855b42
commit
b771a37592
5 changed files with 44 additions and 53 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue