From a3dc3a6b73d37dbcad1c3dc3646aa99a87aa814c Mon Sep 17 00:00:00 2001 From: JuanJakobo <34421964+JuanJakobo@users.noreply.github.com> Date: Fri, 12 Feb 2021 16:44:53 +0100 Subject: [PATCH] show if a folder is synced --- src/ui/listViewEntry.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ui/listViewEntry.cpp b/src/ui/listViewEntry.cpp index 4e8facf..0f15819 100644 --- a/src/ui/listViewEntry.cpp +++ b/src/ui/listViewEntry.cpp @@ -41,6 +41,14 @@ void ListViewEntry::draw(const Item &item, ifont *entryFont, ifont *entryFontBol DrawTextRect(_position.x, _position.y + 3 * fontHeight, _position.w, fontHeight, "Click to Download", ALIGN_RIGHT); } } + else + { + if (item.getState() == FileState::ISYNCED) + { + DrawTextRect(_position.x, _position.y + 3 * fontHeight, _position.w, fontHeight, "Folder synced", ALIGN_RIGHT); + } + } + DrawTextRect(_position.x, _position.y + 2 * fontHeight, _position.w, fontHeight, item.getLastEditDate().c_str(), ALIGN_LEFT); DrawTextRect(_position.x, _position.y + 3 * fontHeight, _position.w, fontHeight, item.getSize().c_str(), ALIGN_LEFT); }