Minor Undo Bug?

Solved bugs are moved into this topic...
Post Reply
sl23
Posts: 161
Joined: 29.01.2013 10:04

Minor Undo Bug?

Post by sl23 »

I think this is a bug, so I'll post here.

Basically, when I make edits to a file, very often the Undo button icon in the toolbar doesn't change to show that the action is undoable. Clicking it also will not undo an action. I have found that clicking the tab will then update the undo status and the icon changes and is then active, allowing undo actions to take place.

It's not a major issue, just a little annoying really. So if there's other more important stuff to fix, maybe leave this for now? ;)
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2257
Joined: 25.08.2021 18:15

Re: Minor Undo Bug?

Post by main Alexey »

Undo-btn is updating (enabled/disabled) after an idle state (no keyboard/mouse input) and a small pause.
option "ui_timer_idle": 1000 sets the pause of idle timer.
it this the case?
main Alexey
Posts: 2257
Joined: 25.08.2021 18:15

Re: Minor Undo Bug?

Post by main Alexey »

ok, I made updating of undo/redo btns much faster.
beta win64
https://github.com/Alexey-T/CudaText/di ... t-10505641
sl23
Posts: 161
Joined: 29.01.2013 10:04

Re: Minor Undo Bug?

Post by sl23 »

Thanks for the update, but I am not too sure that is the problem here...
Sometimes it never updates, which is the issue I'm having. But it seems random when this happens. It has been going on for quite some time.
Next time it happens I'll take a screenshot to show that the tab has been edited yet no undo shows.
Live for an ideal and leave no place in the mind for anything else.
main Alexey
Posts: 2257
Joined: 25.08.2021 18:15

Re: Minor Undo Bug?

Post by main Alexey »

if this happens I have a way to fix it for sure. never disable undo/redo buttons. it is poorer UI but it's safe.
main Alexey
Posts: 2257
Joined: 25.08.2021 18:15

Re: Minor Undo Bug?

Post by main Alexey »

fixed: now undo/redo btns won't be disabled on toolbar (for the editor. for the viewer - they will be disabled).
will be in next beta.
sl23
Posts: 161
Joined: 29.01.2013 10:04

Re: Minor Undo Bug?

Post by sl23 »

Thanks Alexey! Very much appreciated.
Live for an ideal and leave no place in the mind for anything else.
Post Reply