mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Fix for VS-Express 2012
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2478 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
965676cc3a
commit
3becf11cfd
1 changed files with 3 additions and 3 deletions
|
@ -61,8 +61,7 @@ namespace GreenshotPlugin.Controls {
|
|||
/// <returns></returns>
|
||||
protected static bool IsInDesignMode {
|
||||
get {
|
||||
return (Application.ExecutablePath.IndexOf("devenv.exe", StringComparison.OrdinalIgnoreCase) > -1)
|
||||
|| (Application.ExecutablePath.IndexOf("sharpdevelop.exe", StringComparison.OrdinalIgnoreCase) > -1);
|
||||
return (Application.ExecutablePath.IndexOf("devenv.exe", StringComparison.OrdinalIgnoreCase) > -1) || (Application.ExecutablePath.IndexOf("sharpdevelop.exe", StringComparison.OrdinalIgnoreCase) > -1 || (Application.ExecutablePath.IndexOf("wdexpress.exe", StringComparison.OrdinalIgnoreCase) > -1));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -107,7 +106,8 @@ namespace GreenshotPlugin.Controls {
|
|||
if (!Language.AddLanguageFilePath(Path.Combine(assemblyDirectory, @"..\..\Languages\"))) {
|
||||
Language.AddLanguageFilePath(Path.Combine(assemblyDirectory, @"..\..\..\Languages\"));
|
||||
}
|
||||
} catch (Exception) {
|
||||
} catch (Exception ex) {
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue