mirror of
https://github.com/Readarr/Readarr.git
synced 2026-09-23 03:35:03 -04:00
different favicon for debug mode
This commit is contained in:
1 parent
fcb4f8fd58
commit
0829bb6e41
2 files changed
+9
-1
No files matched your search
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using NLog;
|
||||
using NzbDrone.Common.Disk;
|
||||
@@ -17,7 +18,14 @@ public FaviconMapper(IAppFolderInfo appFolderInfo, IDiskProvider diskProvider, L
|
||||
|
||||
public override string Map(string resourceUrl)
|
||||
{
|
||||
var path = Path.Combine("Content", "Images", "favicon.ico");
|
||||
var fileName = "favicon.ico";
|
||||
|
||||
if (BuildInfo.IsDebug)
|
||||
{
|
||||
fileName = "favicon-debug.ico";
|
||||
}
|
||||
|
||||
var path = Path.Combine("Content", "Images", fileName);
|
||||
|
||||
return Path.Combine(_appFolderInfo.StartUpFolder, "UI", path);
|
||||
}
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 17 KiB |
Reference in new issue
Block a user