Bug fix: when you load a particular note (or note revision) in its own window, and that note is a startup note, it shows up in the note
tree twice.
This commit is contained in:
parent
d7f9e96604
commit
ae92e04e83
|
@ -66,6 +66,8 @@ class Main_page( Page ):
|
|||
u"creation" : note.creation,
|
||||
} for note in notes ]
|
||||
|
||||
root_notes = startup_notes + ( notes and [ note for note in notes if note.object_id not in startup_note_ids ] or [] )
|
||||
|
||||
def json( string ):
|
||||
return escape( unicode( Json( string ) ), quote = True )
|
||||
|
||||
|
@ -150,7 +152,7 @@ class Main_page( Page ):
|
|||
hide_toolbar = parent_id or not notebook.read_write
|
||||
),
|
||||
notebook,
|
||||
startup_notes + ( notes and notes or [] ),
|
||||
root_notes,
|
||||
recent_notes,
|
||||
total_notes_count,
|
||||
),
|
||||
|
|
Reference in New Issue