extract contact list sorting and refine sort

This commit is contained in:
Green Sky
2025-03-22 20:05:30 +01:00
parent 0f85bcc128
commit b87866cb0b
5 changed files with 199 additions and 56 deletions

View File

@@ -15,6 +15,7 @@
#include "./chat_gui/file_selector.hpp"
#include "./chat_gui/send_image_popup.hpp"
#include "./chat_gui/image_viewer_popup.hpp"
#include "./chat_gui/contact_list_sorter.hpp"
#include <entt/container/dense_map.hpp>
@@ -41,9 +42,9 @@ class ChatGui4 : public ObjectStoreEventI {
FileSelector _fss;
SendImagePopup _sip;
ImageViewerPopup _ivp;
ContactListSorter _cls;
// set to true if not hovered
// TODO: add timer?
bool _contact_list_sortable {false};
// TODO: refactor this to allow multiple open contacts