Formatting
This commit is contained in:
parent
ec41918ec4
commit
3e5d34f25f
4 changed files with 81 additions and 25 deletions
|
|
@ -29,8 +29,12 @@ impl<A: Application> State<A>
|
|||
where
|
||||
<A::Renderer as crate::Renderer>::Theme: application::StyleSheet,
|
||||
{
|
||||
/// Creates a new [`State`] for the provided [`Application`] and window.
|
||||
pub fn new(application: &A, window_id: window::Id, window: &Window) -> Self {
|
||||
/// Creates a new [`State`] for the provided [`Application`]'s window.
|
||||
pub fn new(
|
||||
application: &A,
|
||||
window_id: window::Id,
|
||||
window: &Window,
|
||||
) -> Self {
|
||||
let title = application.title(window_id);
|
||||
let scale_factor = application.scale_factor();
|
||||
let theme = application.theme();
|
||||
|
|
@ -191,7 +195,6 @@ where
|
|||
|
||||
if self.title != new_title {
|
||||
window.set_title(&new_title);
|
||||
|
||||
self.title = new_title;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue