HEnquist / camillagui

GNU General Public License v3.0
9 stars 1 forks source link

Undo/Redo #56

Closed JWahle closed 2 years ago

JWahle commented 2 years ago

@HEnquist I just implemented two arrows in the tab bar to undo/redo recent changes, including a tooltip, that shows what changed. Can you try the functionality and see, if it works as you would expect?

HEnquist commented 2 years ago

Seems to work just fine! A small annoying detail was that it selected text on the page every time I "double-clicked" a button, for example when undoing two changes. I made a simple fix to that by just disabling user-select on all buttons. If you are happy with this we can merge.

HEnquist commented 2 years ago

Just noticed that it's not possible to create mixers in this branch. To reproduce the problem, just go to the mixers tab, add a new mixer, and then press the + button to add either a mapping or a source. Error:

Uncaught RangeError: Maximum call stack size exceeded
    at jsonDiffAsLines (jsondiff.ts:15:1)
    at jsondiff.ts:57:1
    at Array.map (<anonymous>)
    at getChildrenDiffs (jsondiff.ts:57:1)
    at jsonDiffAsLines (jsondiff.ts:15:1)
    at jsondiff.ts:57:1
    at Array.map (<anonymous>)
    at getChildrenDiffs (jsondiff.ts:57:1)
    at jsonDiffAsLines (jsondiff.ts:15:1)
    at jsondiff.ts:57:1
    at Array.map (<anonymous>)
    at getChildrenDiffs (jsondiff.ts:57:1)
    at jsonDiffAsLines (jsondiff.ts:15:1)
    at jsondiff.ts:57:1
(etc etc)
JWahle commented 2 years ago

I'm glad, you found that one before the release. I'll have a look.

JWahle commented 2 years ago

@HEnquist it is fixed now. Please try again.

HEnquist commented 2 years ago

Yes, works great now!