mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 18:57:28 -07:00
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:
parent
e7ab5f5677
commit
40956b195c
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue