From 1ef8b0c08bffcc01b834460ea22ef8c52f0f0baf Mon Sep 17 00:00:00 2001 From: jacob1 Date: Wed, 9 Mar 2016 23:30:05 -0500 Subject: [PATCH] Fix progress disappearing on hover in the local save browser, fixes #287 --- src/gui/filebrowser/FileBrowserActivity.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/filebrowser/FileBrowserActivity.cpp b/src/gui/filebrowser/FileBrowserActivity.cpp index 637775314..6b5908f29 100644 --- a/src/gui/filebrowser/FileBrowserActivity.cpp +++ b/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];