Removed the app-indicator extended check

This commit is contained in:
Kenneth Skovhede
2014-03-28 13:20:06 +01:00
parent 922e06f0ca
commit 10b13d81be
@@ -180,28 +180,7 @@ namespace Duplicati.GUI.TrayIcon
private static bool TryGetAppIndicator()
{
#if __MonoCS__ || __WindowsGTK__
if (typeof(AppIndicator.ApplicationIndicator) != null)
{
try
{
var n = new AppIndicator.ApplicationIndicator(IntPtr.Zero);
}
catch (DllNotFoundException)
{
return false;
}
catch
{
}
// If we get here then type is loading,
// and it found the libraries needed
return true;
}
else
{
return false;
}
return typeof(AppIndicator.ApplicationIndicator) != null;
#else
return false;
#endif