diff --git a/src/handler/eventHandler.cpp b/src/handler/eventHandler.cpp index 0b0dadc..679dc3e 100644 --- a/src/handler/eventHandler.cpp +++ b/src/handler/eventHandler.cpp @@ -625,6 +625,7 @@ void EventHandler::startDownload() vector currentItems = _sqllite.getItemsChildren(_webDAVView->getCurrentEntry().path); this->downloadFolder(currentItems, 0); UpdateProgressbar("Download completed", 100); + _webDAVView->getCurrentEntry().state = FileState::ISYNCED; } //TODO implement @@ -666,10 +667,8 @@ void EventHandler::updateItems(vector &items) void EventHandler::drawWebDAVItems(vector &items) { - FillAreaRect(&_menu->getContentRect(), WHITE); _webDAVView.release(); _currentPath = items.at(0).path; getLocalFileStructure(items); _webDAVView = std::unique_ptr(new WebDAVView(_menu->getContentRect(), items,1)); - PartialUpdate(_menu->getContentRect().x, _menu->getContentRect().y, _menu->getContentRect().w, _menu->getContentRect().h); } diff --git a/src/ui/loginView/loginView.cpp b/src/ui/loginView/loginView.cpp index 428607c..b1d1bb0 100644 --- a/src/ui/loginView/loginView.cpp +++ b/src/ui/loginView/loginView.cpp @@ -51,6 +51,7 @@ LoginView::LoginView(const irect &contentRect) : _contentRect(contentRect) FillAreaRect(&_loginButton, BLACK); SetFont(_loginFont, WHITE); DrawTextRect2(&_loginButton, "Login"); + PartialUpdate(_contentRect.x, _contentRect.y, _contentRect.w, _contentRect.h); } LoginView::~LoginView()