Skip to content

Commit

Permalink
Fix gui/notes issue with initial loading of selected note
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktor-obrebski committed Sep 10, 2024
1 parent ce23990 commit 5dd8add
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gui/notes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ NotesWindow.ATTRS {
function NotesWindow:init()
self.selected_note = nil
self.note_manager = nil
self.curr_search_phrase = nil

self:addviews{
widgets.Panel{
Expand Down Expand Up @@ -161,8 +162,12 @@ function NotesWindow:init()
}
}
}
end

self:loadFilteredNotes('', true)
function NotesWindow:postUpdateLayout()
if self.curr_search_phrase == nil then
self:loadFilteredNotes('', true)
end
end

function NotesWindow:showNoteManager(note)
Expand Down

0 comments on commit 5dd8add

Please sign in to comment.