mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Copy previous plugin settings if they don't exist.
This commit is contained in:
@@ -166,14 +166,14 @@ namespace MediaBrowser.Common.Plugins
|
||||
assemblyPlugin.SetId(assemblyId);
|
||||
}
|
||||
|
||||
// TODO : Simplify this, once migration support is ceased.
|
||||
// TODO : Remove this, once migration support is ceased.
|
||||
if (inPluginFolder)
|
||||
{
|
||||
var oldConfigFilePath = Path.Combine(ApplicationPaths.PluginConfigurationsPath, ConfigurationFileName);
|
||||
|
||||
if (!File.Exists(ConfigurationFilePath) && File.Exists(oldConfigFilePath))
|
||||
{
|
||||
// Migrate settings, as different plugin versions may have different settings.
|
||||
// Migrate pre 10.7 settings, as different plugin versions may have different settings.
|
||||
try
|
||||
{
|
||||
File.Copy(oldConfigFilePath, ConfigurationFilePath);
|
||||
|
||||
Reference in New Issue
Block a user