fixed IsInDesignMode to work with sharpdevelop, too

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2384 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
JKlingen 2012-12-15 13:50:13 +00:00
commit 40956b195c

View file

@ -61,10 +61,8 @@ namespace GreenshotPlugin.Controls {
/// <returns></returns>
protected static bool IsInDesignMode {
get {
if (Application.ExecutablePath.IndexOf("devenv.exe", StringComparison.OrdinalIgnoreCase) > -1) {
return true;
}
return false;
return (Application.ExecutablePath.IndexOf("devenv.exe", StringComparison.OrdinalIgnoreCase) > -1)
|| (Application.ExecutablePath.IndexOf("sharpdevelop.exe", StringComparison.OrdinalIgnoreCase) > -1);
}
}