Permalink
Browse files

Fix progress disappearing on hover in the local save browser, fixes #287

  • Loading branch information...
jacob1 committed Mar 10, 2016
1 parent 9b8e6c0 commit 1ef8b0c08bffcc01b834460ea22ef8c52f0f0baf
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/filebrowser/FileBrowserActivity.cpp
@@ -137,6 +137,7 @@ FileBrowserActivity::FileBrowserActivity(std::string directory, FileSelectedCall
FocusComponent(textField);

itemList = new ui::ScrollPanel(ui::Point(4, 45), ui::Point(Size.X-8, Size.Y-53));
itemList->Visible = false;
AddComponent(itemList);

progressBar = new ui::ProgressBar(ui::Point((Size.X-200)/2, 45+(Size.Y-66)/2), ui::Point(200, 17));
@@ -223,6 +224,7 @@ void FileBrowserActivity::loadDirectory(std::string directory, std::string searc
files.clear();

infoText->Visible = false;
itemList->Visible = false;
progressBar->Visible = true;
progressBar->SetProgress(-1);
progressBar->SetStatus("Loading files");
@@ -244,6 +246,8 @@ void FileBrowserActivity::NotifyDone(Task * task)
progressBar->Visible = false;
infoText->Visible = true;
}
else
itemList->Visible = true;
for (size_t i = 0; i < components.size(); i++)
{
delete components[i];

0 comments on commit 1ef8b0c

Please sign in to comment.