From 22c9b02fbcac4d66ae298e4e136d672d13d621c5 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 10 Apr 2026 13:08:38 -0500 Subject: [PATCH] [fix]: performance issue by creating service_item on mouse hovers --- TODO.org | 8 ++++++-- src/ui/library.rs | 33 +++++++++++++++++++++++++++++---- 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/TODO.org b/TODO.org index 5187d94..e3c5539 100644 --- a/TODO.org +++ b/TODO.org @@ -28,8 +28,6 @@ There seems to be some issue with fontdb not able to decipher all the versions o * TODO [#B] Find a way to use auth-token in tests for ci If I can find out how to use my secrets in ci that would free up more tests, but I could also just turn that test off for the CI so that it won't constantly fail for now -* TODO [#C] Rename menu actions to menu commands and build a reverse hashmap for settings to map commands to key-binding such that we can allow for remapping them on the fly. - * TODO [#B] Saving and loading font awareness Someday we should make the saving and loading to be aware of the fonts on the system and find a way to embed them into the save file. @@ -37,6 +35,8 @@ Someday we should make the saving and loading to be aware of the fonts on the sy * TODO [#B] Develop library system for slides that are more than images or video i.e. content +* TODO [#C] Rename menu actions to menu commands and build a reverse hashmap for settings to map commands to key-binding such that we can allow for remapping them on the fly. + * TODO [#C] Use orgize as a file parser and allow for orgdown files to represent a presentation. Orgize has some very nice features that will let me determine what things are in an orgdown file and thus take said file and turn it into a presentation. @@ -109,6 +109,10 @@ There is likely some work that still needs to be done here, I believe I am someh * DONE [#A] Need to fixup how songs are edited in the editors Currently the song is cloned many times to pass around and then finally get updated in DB. Instead, we need to edit the song directly in the editor and after it's been changed appropriatel, run the update_song method to get the current song and create slides from it and then update it in the DB. +* DONE Song Editor has some sort of performance issue. +CLOSED: [2026-04-10 Fri 13:08] +=core::songs= logs in line 294 whenever even mousing over the song editor. + * DONE [#B] Functions for text alignments This will need to be matched on for the =TextAlignment= from the user diff --git a/src/ui/library.rs b/src/ui/library.rs index 5e07f0c..2215aa7 100644 --- a/src/ui/library.rs +++ b/src/ui/library.rs @@ -111,7 +111,7 @@ pub enum Message { ReaddImages(Vec), ReaddVideos(Vec