Stop Plex being enabled on the first time installing #1048

This commit is contained in:
Jamie.Rees 2017-02-16 08:18:16 +00:00
commit da81b0de6d
3 changed files with 7 additions and 3 deletions

View file

@ -68,8 +68,11 @@ namespace Ombi.Core.Migration.Migrations
{
#if !DEBUG
var s = PlexSettings.GetSettings();
s.Enable = true;
PlexSettings.SaveSettings(s);
if (!string.IsNullOrEmpty(s.Ip))
{
s.Enable = true;
PlexSettings.SaveSettings(s);
}
#endif
}
private void UpdateCustomSettings()