mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-12 13:41:34 +00:00
add argument-less update method
This commit is contained in:
parent
1df58f17de
commit
abce6e44fd
@ -147,22 +147,26 @@ int Page::save(
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Page::update()
|
||||||
|
{
|
||||||
|
// Update children components
|
||||||
|
pageNavigation->update(
|
||||||
|
progress_fraction
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
void Page::update(
|
void Page::update(
|
||||||
const MIME & MIME,
|
const MIME & MIME,
|
||||||
const Glib::ustring & TITLE,
|
const Glib::ustring & TITLE,
|
||||||
const Glib::ustring & DESCRIPTION,
|
const Glib::ustring & DESCRIPTION,
|
||||||
const double & PROGRESS_FRACTION
|
const double & PROGRESS_FRACTION
|
||||||
) {
|
) {
|
||||||
// Update page data
|
|
||||||
mime = MIME;
|
mime = MIME;
|
||||||
title = TITLE;
|
title = TITLE;
|
||||||
description = DESCRIPTION;
|
description = DESCRIPTION;
|
||||||
progress_fraction = PROGRESS_FRACTION;
|
progress_fraction = PROGRESS_FRACTION;
|
||||||
|
|
||||||
// Update children components
|
update();
|
||||||
pageNavigation->update(
|
|
||||||
progress_fraction
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Page::navigation_reload(
|
void Page::navigation_reload(
|
||||||
|
@ -126,6 +126,7 @@ namespace app::browser::main::tab
|
|||||||
const sqlite3_int64 & APP_BROWSER_MAIN_TAB__SESSION__ID
|
const sqlite3_int64 & APP_BROWSER_MAIN_TAB__SESSION__ID
|
||||||
);
|
);
|
||||||
|
|
||||||
|
void update();
|
||||||
void update(
|
void update(
|
||||||
const MIME & MIME,
|
const MIME & MIME,
|
||||||
const Glib::ustring & TITLE,
|
const Glib::ustring & TITLE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user