1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-10-06 08:07:20 +02:00

Fixed: Exit from tray icon

This commit is contained in:
Mark McDowall 2014-01-09 20:32:21 -08:00
parent 401a5c9f26
commit 3eeee7335e
5 changed files with 4 additions and 9 deletions

View File

@ -17,8 +17,6 @@ public abstract class ContainerBuilderBase
protected ContainerBuilderBase(IStartupContext args, params string[] assemblies)
{
_loadedTypes = new List<Type>();
foreach (var assembly in assemblies)
@ -55,8 +53,6 @@ private void AutoRegisterImplementations(Type contractType)
{
var implementations = Container.GetImplementations(contractType).Where(c => !c.IsGenericTypeDefinition).ToList();
if (implementations.Count == 0)
{
return;

View File

@ -139,7 +139,6 @@ public virtual void Stop(string serviceName)
}
}
public ServiceControllerStatus GetStatus(string serviceName)
{
return GetService(serviceName).Status;

View File

@ -40,7 +40,10 @@ public static void Start(StartupContext startupContext, IUserAlert userAlert, Ac
startCallback(_container);
}
SpinToExit(appMode);
else
{
SpinToExit(appMode);
}
}
catch (TerminateApplicationException e)
{

View File

@ -23,7 +23,6 @@ public SystemTrayApp(IBrowserService browserService)
_browserService = browserService;
}
public void Start()
{
Application.ThreadException += OnThreadException;

View File

@ -34,7 +34,5 @@ public static void Main(string[] args)
MessageBox.Show(text: message, buttons: MessageBoxButtons.OK, icon: MessageBoxIcon.Error, caption: "Epic Fail!");
}
}
}
}