Space Hierarchy Caching Finally Works - GSoC'22 post #10

⌂ home      ⇧ one level up
Sun Jul 24, 2022 · 115 words · 1 min

After a lot of ups and downs, I finally got Space hierarchy caching to work on NeoChat.

The commit is here.

I told in my yesterday's post about how a silly error on my part was not letting caching work as expected.

Now, I have invkoed cacheSpaceHierarchy() once when SortFilterRoomListModel is initialized.

populateSpaceHierarchy() accepts an additional parameter to decide if the UI needs to be updated. According to current logic, the UI shoudn't be updated when the caching happens as a part of class initialization. It must be updated only when user clicks on a Space icon.


hire me! · blog · about · resume · github · kde invent · endeavour · email · home

🪻🌼