mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
append progressbar to request entry
This commit is contained in:
parent
f959a6627b
commit
3a91155596
10 changed files with 68 additions and 103 deletions
|
|
@ -76,7 +76,7 @@ Navigation::Navigation(
|
|||
"refresh",
|
||||
[this]
|
||||
{
|
||||
refresh();
|
||||
refresh(0);
|
||||
}
|
||||
);
|
||||
|
||||
|
|
@ -87,20 +87,26 @@ Navigation::Navigation(
|
|||
}
|
||||
|
||||
// Actions
|
||||
void Navigation::refresh()
|
||||
{
|
||||
void Navigation::refresh(
|
||||
const double & PROGRESS_FRACTION
|
||||
) {
|
||||
// Toggle base button sensibility
|
||||
navigationBase->set_sensitive(
|
||||
!navigationRequest->get_host().empty() && !navigationRequest->get_path().empty()
|
||||
);
|
||||
|
||||
// Refresh history widget
|
||||
navigationHistory->refresh();
|
||||
|
||||
// Toggle update button sensibility
|
||||
navigationUpdate->set_sensitive(
|
||||
navigationRequest->get_text_length() > 0
|
||||
);
|
||||
|
||||
// Refresh history widget
|
||||
navigationHistory->refresh();
|
||||
// Refresh request area (with progressbar)
|
||||
navigationRequest->refresh(
|
||||
PROGRESS_FRACTION
|
||||
);
|
||||
}
|
||||
|
||||
void Navigation::history_add(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue