Skip to content

Commit

Permalink
Fix progress disappearing on hover in the local save browser, fixes #287
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Mar 10, 2016
1 parent 9b8e6c0 commit 1ef8b0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/filebrowser/FileBrowserActivity.cpp
Expand Up @@ -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));
Expand Down Expand Up @@ -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");
Expand All @@ -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];
Expand Down

0 comments on commit 1ef8b0c

Please sign in to comment.