mirror of
https://github.com/Radarr/Radarr
synced 2024-12-25 17:27:59 +00:00
Compile error when fixing FileBrowser not displaying drive letters on Windows.
This commit is contained in:
parent
f8d97cac7d
commit
9519f3137c
1 changed files with 14 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
using System.IO;
|
||||
using Mono.Unix;
|
||||
using NzbDrone.Common.Disk;
|
||||
using NzbDrone.Common.Extensions;
|
||||
|
||||
namespace NzbDrone.Mono.Disk
|
||||
{
|
||||
|
@ -51,5 +52,18 @@ public string VolumeLabel
|
|||
{
|
||||
get { return _unixDriveInfo.VolumeLabel; }
|
||||
}
|
||||
|
||||
public string VolumeName
|
||||
{
|
||||
get
|
||||
{
|
||||
if (VolumeLabel.IsNullOrWhiteSpace())
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
|
||||
return string.Format("{0} ({1})", Name, VolumeLabel);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue