Reduce redrawing
parent
c6ea754345
commit
7c90ac4dc8
|
@ -625,6 +625,7 @@ void EventHandler::startDownload()
|
||||||
vector<WebDAVItem> currentItems = _sqllite.getItemsChildren(_webDAVView->getCurrentEntry().path);
|
vector<WebDAVItem> currentItems = _sqllite.getItemsChildren(_webDAVView->getCurrentEntry().path);
|
||||||
this->downloadFolder(currentItems, 0);
|
this->downloadFolder(currentItems, 0);
|
||||||
UpdateProgressbar("Download completed", 100);
|
UpdateProgressbar("Download completed", 100);
|
||||||
|
_webDAVView->getCurrentEntry().state = FileState::ISYNCED;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO implement
|
//TODO implement
|
||||||
|
@ -666,10 +667,8 @@ void EventHandler::updateItems(vector<WebDAVItem> &items)
|
||||||
|
|
||||||
void EventHandler::drawWebDAVItems(vector<WebDAVItem> &items)
|
void EventHandler::drawWebDAVItems(vector<WebDAVItem> &items)
|
||||||
{
|
{
|
||||||
FillAreaRect(&_menu->getContentRect(), WHITE);
|
|
||||||
_webDAVView.release();
|
_webDAVView.release();
|
||||||
_currentPath = items.at(0).path;
|
_currentPath = items.at(0).path;
|
||||||
getLocalFileStructure(items);
|
getLocalFileStructure(items);
|
||||||
_webDAVView = std::unique_ptr<WebDAVView>(new WebDAVView(_menu->getContentRect(), items,1));
|
_webDAVView = std::unique_ptr<WebDAVView>(new WebDAVView(_menu->getContentRect(), items,1));
|
||||||
PartialUpdate(_menu->getContentRect().x, _menu->getContentRect().y, _menu->getContentRect().w, _menu->getContentRect().h);
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,6 +51,7 @@ LoginView::LoginView(const irect &contentRect) : _contentRect(contentRect)
|
||||||
FillAreaRect(&_loginButton, BLACK);
|
FillAreaRect(&_loginButton, BLACK);
|
||||||
SetFont(_loginFont, WHITE);
|
SetFont(_loginFont, WHITE);
|
||||||
DrawTextRect2(&_loginButton, "Login");
|
DrawTextRect2(&_loginButton, "Login");
|
||||||
|
PartialUpdate(_contentRect.x, _contentRect.y, _contentRect.w, _contentRect.h);
|
||||||
}
|
}
|
||||||
|
|
||||||
LoginView::~LoginView()
|
LoginView::~LoginView()
|
||||||
|
|
Loading…
Reference in New Issue