Added config for collect on f5
This commit is contained in:
parent
62b6906315
commit
d2c86dff32
2 changed files with 10 additions and 0 deletions
|
|
@ -3046,6 +3046,8 @@ If you experience adhesion problems, please re-run leveling."
|
|||
private static string lastSection = "";
|
||||
private static Stopwatch timer;
|
||||
|
||||
public static bool EnableF5Collect { get; set; }
|
||||
|
||||
public static SystemWindow LoadRootWindow(int width, int height)
|
||||
{
|
||||
timer = Stopwatch.StartNew();
|
||||
|
|
@ -3140,6 +3142,13 @@ If you experience adhesion problems, please re-run leveling."
|
|||
});
|
||||
}
|
||||
|
||||
if (EnableF5Collect
|
||||
&& keyEvent.KeyCode == Keys.F5)
|
||||
{
|
||||
GC.Collect();
|
||||
systemWindow.Invalidate();
|
||||
}
|
||||
|
||||
if (!keyEvent.Handled
|
||||
&& gcode2D != null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue