Merge pull request #246 from hecrj/feature/application-flags

Application flags
This commit is contained in:
Héctor Ramón 2020-03-31 17:49:56 +02:00 committed by GitHub
commit e79e832092
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 119 additions and 63 deletions

View file

@ -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),