mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
reorganize page loading methods
This commit is contained in:
parent
8d3c4319c6
commit
0ff182f15d
4 changed files with 354 additions and 369 deletions
|
|
@ -1,7 +1,7 @@
|
|||
mod action;
|
||||
mod database;
|
||||
mod identity;
|
||||
mod page;
|
||||
pub mod page;
|
||||
mod widget;
|
||||
|
||||
use action::Action;
|
||||
|
|
@ -75,7 +75,7 @@ impl Item {
|
|||
page.navigation.request.widget.entry.set_text(&text);
|
||||
|
||||
if is_load {
|
||||
page.load(true);
|
||||
page::load(&page, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -111,7 +111,7 @@ impl Item {
|
|||
if let Some(text) = request {
|
||||
page.navigation.request.widget.entry.set_text(&text);
|
||||
}
|
||||
page.load(is_history);
|
||||
page::load(&page, is_history);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue