Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortherzok <marius.ungureanu@xamarin.com>2016-08-18 16:27:07 +0300
committertherzok <marius.ungureanu@xamarin.com>2016-08-18 16:28:57 +0300
commit7a70864d30cf2b21552e41b2780a7c3f2fd00b0c (patch)
treec1d4552098175bef3a30eb5f421a53b853b0683a /main/src/addins
parented2436650c88eca18c4f902c3241b4f4b7d5f0ed (diff)
[Gtk#] Cache the value of whether stetic is disabled or not.
Diffstat (limited to 'main/src/addins')
-rw-r--r--main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore/GtkDesignInfo.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore/GtkDesignInfo.cs b/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore/GtkDesignInfo.cs
index c039499739..c0dac79dd1 100644
--- a/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore/GtkDesignInfo.cs
+++ b/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore/GtkDesignInfo.cs
@@ -198,9 +198,10 @@ namespace MonoDevelop.GtkCore
return File.Exists (Path.Combine (project.BaseDirectory, "gtk-gui", "gui.stetic"));
}
+ static bool steticDisabled = !string.IsNullOrEmpty (Environment.GetEnvironmentVariable ("DISABLE_STETIC"));
public static bool SupportsDesigner (Project project)
{
- if (!string.IsNullOrEmpty (Environment.GetEnvironmentVariable ("DISABLE_STETIC"))) {
+ if (steticDisabled) {
return false;
}
DotNetProject dnp = project as DotNetProject;