← Back to team overview

kicad-developers team mailing list archive

Re: Maximum undo items

 

Le 10/05/2016 à 20:41, Chris Pavlina a écrit :
> Back in August (git:aaadb40), I made the undo history infinite in pcbnew,
> eeschema, modedit, and libedit. Wayne wanted this to remain an option, in case
> of issues with the memory consumption of the undo stack. Currently, if you set
> "Maximum undo items" to zero, you get infinite history. I also made it default
> to unlimited.
> 
> In the seven months since I did that, has anybody ever needed to limit that?
> I've found the memory consumption caused by it to be quite minimal even on very
> long layout sessions (I do not often shut my computer down other than to
> install kernel updates and do not generally close things I'm working on, so
> pcbnew can remain open for weeks at a time...).
> 
> And if nobody has needed to change the limit, can I remove it to reduce options
> clutter?
> 

Please, do not remove it.
For most of users, this option is not useful.

However, developers need to be able to set the value (usually at a low value like 2 or 3) when the
undo/redo has an issue (usually related to object deletion), even in release mode.
Sometimes a crash can happen when objects in undo/redo list are deleted, if there is a bug in these
functions.

-- 
Jean-Pierre CHARRAS


Follow ups

References