mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 23:33:38 -07:00
removed default root property
tweaked the ui on add new show
This commit is contained in:
parent
613a49c3ea
commit
c45729a986
5 changed files with 72 additions and 102 deletions
|
@ -191,7 +191,7 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
public ViewResult AddRootDir()
|
||||
{
|
||||
return View("RootDir", new RootDir { Default = false });
|
||||
return View("RootDir", new RootDir());
|
||||
}
|
||||
|
||||
public ActionResult SubMenu()
|
||||
|
@ -225,13 +225,13 @@ namespace NzbDrone.Web.Controllers
|
|||
foreach (var currentRootDir in currentRootDirs)
|
||||
{
|
||||
var closureRootDir = currentRootDir;
|
||||
if (!data.Directories.Exists(d => d.RootDirId == closureRootDir.RootDirId))
|
||||
_rootDirProvider.Remove(closureRootDir.RootDirId);
|
||||
if (!data.Directories.Exists(d => d.Id == closureRootDir.Id))
|
||||
_rootDirProvider.Remove(closureRootDir.Id);
|
||||
}
|
||||
|
||||
foreach (var dir in data.Directories)
|
||||
{
|
||||
if (dir.RootDirId == 0)
|
||||
if (dir.Id == 0)
|
||||
_rootDirProvider.Add(dir);
|
||||
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue