Get updated profiles compiling on Android
- Remove unused properties from ApplicationView - Rename CompactApplicationView to TouchscreenView - Rename ResponsiveApplicationView to DesktopView - Move abstract ToggleTopContainer() specific to TouchscreenView - Remove unused HideTopContainer implementations - Conditionally compile invocation/assignment of ApplicationMenuRow - Migrate single setting from PrinterSettings "PublishBedImage" to SliceSettings - Remove PrinterSettings class - Import "PublishBedImage" during ImportPrinters - Remove code that doubles the size of the splitter bar when collapsed - Fix incorrect path to "config.ini"
This commit is contained in:
parent
a333961029
commit
5db7c79d00
16 changed files with 87 additions and 236 deletions
|
|
@ -97,11 +97,11 @@ namespace MatterHackers.MatterControl.ConfigurationPage
|
|||
publishImageSwitchContainer.VAnchor = VAnchor.ParentCenter;
|
||||
publishImageSwitchContainer.Margin = new BorderDouble(left: 16);
|
||||
|
||||
CheckBox toggleSwitch = ImageButtonFactory.CreateToggleSwitch(PrinterSettings.Instance.get("PublishBedImage") == "true");
|
||||
CheckBox toggleSwitch = ImageButtonFactory.CreateToggleSwitch(ActiveSliceSettings.Instance.PublishBedImage());
|
||||
toggleSwitch.CheckedStateChanged += (sender, e) =>
|
||||
{
|
||||
CheckBox thisControl = sender as CheckBox;
|
||||
PrinterSettings.Instance.set("PublishBedImage", thisControl.Checked ? "true" : "false");
|
||||
ActiveSliceSettings.Instance.SetActiveValue("PublishBedImage", thisControl.Checked ? "1" : "0");
|
||||
};
|
||||
publishImageSwitchContainer.AddChild(toggleSwitch);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue