Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MatterControl.Printing/Settings/SliceSettingsFields.cs
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ public static IEnumerable<SliceSettingData> AllSettings()
PresentationName = "End G-Code".Localize(),
HelpText = "G-Code to be run at the end of all automatic output (the very end of the G-Code commands).".Localize(),
DataEditType = DataEditTypes.MULTI_LINE_TEXT,
DefaultValue = "M104 S0 ; turn off temperature\\nG28 X0 ; home X axis\\nM84 ; disable motors",
DefaultValue = "M140 S0 ; turn off bed temperature\nM104 S0 ; turn off temperature\nG28 X0 ; home X axis\nM84 ; disable motors",
Converter = new GCodeMapping(),
},
new SliceSettingData()
Expand Down
6 changes: 5 additions & 1 deletion MatterControlLib/Library/Providers/LibraryConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ async void setItemThumbnail(ImageBuffer icon)
{
setItemThumbnail(image);
}));
thumbnailListener?.Invoke(icon);
// Invoke callback on UI thread to ensure Invalidate() works correctly
UiThread.RunOnIdle(() =>
{
thumbnailListener?.Invoke(icon);
});
}
}

Expand Down
2 changes: 1 addition & 1 deletion Submodules/agg-sharp