Skip to content

add init method for settings with flags#266

Merged
hecrj merged 1 commit into
iced-rs:masterfrom
robjtede:improve/flags-init
Apr 6, 2020
Merged

add init method for settings with flags#266
hecrj merged 1 commit into
iced-rs:masterfrom
robjtede:improve/flags-init

Conversation

@robjtede

@robjtede robjtede commented Apr 6, 2020

Copy link
Copy Markdown
Contributor

current flags init:

let mut settings = iced::Settings::default();
settings.flags = data;

new flags init:

let settings = iced::Settings::with_flags(data);

@hecrj hecrj added the feature New feature or request label Apr 6, 2020
@hecrj hecrj added this to the 0.1.1 milestone Apr 6, 2020

@hecrj hecrj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Thank you.

@hecrj hecrj merged commit 6e38631 into iced-rs:master Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants