On Wed, 16 Jul 2014 11:41:37 -0700 (PDT)
"Edward K. Ream" <[email protected]> wrote:

> 
> 
> On Wednesday, July 16, 2014 9:22:03 AM UTC-5, Edward K. Ream wrote:
> 
> > I do notice that the icon box has a black border, indicating that
> > the 
> @auto node is dirty.  That's a recent problem.  I'll fix it asap.
> 
> This looks like an interaction problem with the bookmarks.py plugin.
> Not exactly sure it's fair to blame the plugin...
> 
> Restoring an icon from a persisted uA has the unwanted side effect of 
> setting the @auto file dirty.  I spent some time tracking down this
> bug, but have no good idea about how to squash it.  Terry, do you
> have any ideas?

You mean todo.py, not bookmarks.py, right?  It's tricky, the file
should definitely be marked dirty when the user manually changes the
todo status.  It probably shouldn't be marked dirty when the todo uAs
change during load (this happens with the due date icon, which is
updated to future / today / overdue during load).  It probably should
be marked dirty when things change programatically (i.e. not manually)
at times other than during load.

Is there something todo.py can call to see if Leo's currently loading
the commander it's in, so not startup in general but loading
specifically for this c?  If not, todoController could maybe use hooks
to get that info. itself, i.e. a .mark_dirty() method that uses an
ivar which is initially false (don't mark dirty) but changes to true on
`open2` hook perhaps, provided it's called late enough.

Cheers -Terry

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to