Profile


Name
Reset undo
ID
108144
Shared with
Public
Parent
None
Children
None
Created on
December 19, 2022 at 00:35 AM UTC
Updated on
December 19, 2022 at 00:35 AM UTC
Description

If the undo graph isn't moving, this recipe may fix it. It issues the command `undo.SetUndo(true)`, which will fix the undo function if a previous recipe did `undo.SetUndo(false)`.

Best for


Code


undo.SetUndo(true)

Comments


LociOiling Lv 1

Recipes can turn off undo with the command undo.SetUndo(false).

In the current version of Foldit, a recipe needs to issue undo.SetUndo(true) at the end to re-enable undo.

In "old Foldit", it appears that undo.SetUndo(true) wasn't required. Instead, undo was automatically re-enabled when a recipe ended.