Fix progress disappearing on hover in the local save browser, fixes #287
This commit is contained in:
parent
9b8e6c0f8b
commit
1ef8b0c08b
@ -137,6 +137,7 @@ FileBrowserActivity::FileBrowserActivity(std::string directory, FileSelectedCall
|
|||||||
FocusComponent(textField);
|
FocusComponent(textField);
|
||||||
|
|
||||||
itemList = new ui::ScrollPanel(ui::Point(4, 45), ui::Point(Size.X-8, Size.Y-53));
|
itemList = new ui::ScrollPanel(ui::Point(4, 45), ui::Point(Size.X-8, Size.Y-53));
|
||||||
|
itemList->Visible = false;
|
||||||
AddComponent(itemList);
|
AddComponent(itemList);
|
||||||
|
|
||||||
progressBar = new ui::ProgressBar(ui::Point((Size.X-200)/2, 45+(Size.Y-66)/2), ui::Point(200, 17));
|
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();
|
files.clear();
|
||||||
|
|
||||||
infoText->Visible = false;
|
infoText->Visible = false;
|
||||||
|
itemList->Visible = false;
|
||||||
progressBar->Visible = true;
|
progressBar->Visible = true;
|
||||||
progressBar->SetProgress(-1);
|
progressBar->SetProgress(-1);
|
||||||
progressBar->SetStatus("Loading files");
|
progressBar->SetStatus("Loading files");
|
||||||
@ -244,6 +246,8 @@ void FileBrowserActivity::NotifyDone(Task * task)
|
|||||||
progressBar->Visible = false;
|
progressBar->Visible = false;
|
||||||
infoText->Visible = true;
|
infoText->Visible = true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
itemList->Visible = true;
|
||||||
for (size_t i = 0; i < components.size(); i++)
|
for (size_t i = 0; i < components.size(); i++)
|
||||||
{
|
{
|
||||||
delete components[i];
|
delete components[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user