Merge pull request #246 from hecrj/feature/application-flags
Application flags
This commit is contained in:
commit
e79e832092
14 changed files with 119 additions and 63 deletions
|
|
@ -29,8 +29,9 @@ enum Message {
|
|||
impl Application for Pokedex {
|
||||
type Executor = iced::executor::Default;
|
||||
type Message = Message;
|
||||
type Flags = ();
|
||||
|
||||
fn new() -> (Pokedex, Command<Message>) {
|
||||
fn new(_flags: ()) -> (Pokedex, Command<Message>) {
|
||||
(
|
||||
Pokedex::Loading,
|
||||
Command::perform(Pokemon::search(), Message::PokemonFound),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue