allowing socketeer to be disabeld
This commit is contained in:
parent
47f77acbe5
commit
fe174269bd
4 changed files with 41 additions and 23 deletions
|
|
@ -812,9 +812,15 @@ namespace MatterHackers.MatterControl
|
|||
var scene = sceneContext.Scene;
|
||||
var selectedItem = scene.SelectedItem;
|
||||
if (selectedItem != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
scene.MakeLowestFaceFlat(selectedItem);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
},
|
||||
IsEnabled = (sceneContext) => sceneContext.Scene.SelectedItem != null,
|
||||
Icon = (invertIcon) => AggContext.StaticData.LoadIcon("lay_flat.png", 16, 16, invertIcon).SetPreMultiply(),
|
||||
|
|
@ -2107,7 +2113,11 @@ namespace MatterHackers.MatterControl
|
|||
[NamedTypeFace.Liberation_Mono] = TypeFace.LoadFrom(AggContext.StaticData.ReadAllText(Path.Combine("Fonts", "LiberationMono.svg")))
|
||||
};
|
||||
|
||||
static object locker = new object();
|
||||
|
||||
public static TypeFace GetTypeFace(NamedTypeFace namedTypeFace)
|
||||
{
|
||||
lock (locker)
|
||||
{
|
||||
if (!TypeFaceCache.ContainsKey(namedTypeFace))
|
||||
{
|
||||
|
|
@ -2142,6 +2152,7 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
return TypeFaceCache[namedTypeFace];
|
||||
}
|
||||
}
|
||||
|
||||
private static TypeFace titilliumTypeFace = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -387,6 +387,12 @@ namespace MatterHackers.MatterControl
|
|||
true,
|
||||
false);
|
||||
|
||||
AddUserBoolToggle(advancedPanel,
|
||||
"Enable Socketeer Client".Localize(),
|
||||
UserSettingsKey.ApplicationUseSocketeer,
|
||||
true,
|
||||
false);
|
||||
|
||||
var openCacheButton = new IconButton(AggContext.StaticData.LoadIcon("fa-link_16.png", 16, 16, theme.InvertIcons), theme)
|
||||
{
|
||||
ToolTipText = "Open Folder".Localize(),
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ namespace MatterHackers.MatterControl
|
|||
public const string AfterPrintFinishedSendTextMessage = nameof(AfterPrintFinishedSendTextMessage);
|
||||
public const string ApplicationDisplayMode = nameof(ApplicationDisplayMode);
|
||||
public const string ApplicationUseHeigResDisplays = nameof(ApplicationUseHeigResDisplays);
|
||||
public const string ApplicationUseSocketeer = nameof(ApplicationUseSocketeer);
|
||||
public const string ApplicationTextSize = nameof(ApplicationTextSize);
|
||||
public const string ColorPanelExpanded = nameof(ColorPanelExpanded);
|
||||
public const string ConfigurePrinter_CurrentTab = nameof(ConfigurePrinter_CurrentTab);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit a474af0f548ce56ba523d33cd77128743acd0103
|
||||
Subproject commit c1111e0391606ca75ed26a4985a9898f19f10223
|
||||
Loading…
Add table
Add a link
Reference in a new issue