File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,9 @@ function NotesWindow:init()
79
79
frame = {l = 0 ,b = 2 },
80
80
frame_inset = {t = 1 },
81
81
row_height = 1 ,
82
+ on_select = function (ind , note )
83
+ self :loadNote (note )
84
+ end ,
82
85
on_submit = function (ind , note )
83
86
self :loadNote (note )
84
87
dfhack .gui .pauseRecenter (note .point .pos )
@@ -300,9 +303,9 @@ function NotesScreen:onInput(keys)
300
303
local manager = note_manager .NoteManager {
301
304
note = nil ,
302
305
on_update = function ()
303
- self .subviews .notes_window :reloadFilteredNotes ()
304
306
dfhack .run_command_silent (' overlay trigger notes.map_notes' )
305
- self :dismiss ()
307
+ self .subviews .notes_window :reloadFilteredNotes ()
308
+ self :stopNoteAdd ()
306
309
end ,
307
310
on_dismiss = function ()
308
311
self :stopNoteAdd ()
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ function NoteManager:init()
54
54
frame = {t = 6 ,b = 3 },
55
55
frame_style = gui .FRAME_INTERIOR ,
56
56
init_text = self .note and self .note .point .comment or ' ' ,
57
- -- init_cursor=1
58
57
},
59
58
widgets .Panel {
60
59
view_id = ' buttons' ,
You can’t perform that action at this time.
0 commit comments