mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Re-fix for hidden console CPU + added tray icon
New: Tray Icon visible when running without console window
This commit is contained in:
parent
506899730a
commit
08e7490ac5
7 changed files with 133 additions and 5 deletions
|
@ -1,17 +1,22 @@
|
|||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Threading;
|
||||
|
||||
namespace NzbDrone.Common
|
||||
{
|
||||
public class ConsoleProvider
|
||||
{
|
||||
public static bool IsConsoleApplication
|
||||
{
|
||||
get { return Console.In != StreamReader.Null; }
|
||||
}
|
||||
|
||||
public virtual void WaitForClose()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
Console.ReadLine();
|
||||
Thread.Sleep(250);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue