Skip to content

Commit

Permalink
Reduce redrawing
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanJakobo committed Jul 29, 2022
1 parent c6ea754 commit 7c90ac4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/handler/eventHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ void EventHandler::startDownload()
vector<WebDAVItem> currentItems = _sqllite.getItemsChildren(_webDAVView->getCurrentEntry().path);
this->downloadFolder(currentItems, 0);
UpdateProgressbar("Download completed", 100);
_webDAVView->getCurrentEntry().state = FileState::ISYNCED;
}

//TODO implement
Expand Down Expand Up @@ -666,10 +667,8 @@ void EventHandler::updateItems(vector<WebDAVItem> &items)

void EventHandler::drawWebDAVItems(vector<WebDAVItem> &items)
{
FillAreaRect(&_menu->getContentRect(), WHITE);
_webDAVView.release();
_currentPath = items.at(0).path;
getLocalFileStructure(items);
_webDAVView = std::unique_ptr<WebDAVView>(new WebDAVView(_menu->getContentRect(), items,1));
PartialUpdate(_menu->getContentRect().x, _menu->getContentRect().y, _menu->getContentRect().w, _menu->getContentRect().h);
}
1 change: 1 addition & 0 deletions src/ui/loginView/loginView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7c90ac4

Please sign in to comment.