More best practice way
This commit is contained in:
		
					parent
					
						
							
								c489be9c78
							
						
					
				
			
			
				commit
				
					
						1cff8df36b
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -9,7 +9,7 @@ fn main() {
 | 
			
		|||
        options,
 | 
			
		||||
        Box::new(|_ctx| {
 | 
			
		||||
            // ctx.egui_ctx.options().screen_reader = true;
 | 
			
		||||
            Box::new(Gui::default())
 | 
			
		||||
            Box::<Gui>::default()
 | 
			
		||||
        }),
 | 
			
		||||
    );
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			@ -41,7 +41,7 @@ impl eframe::App for Gui {
 | 
			
		|||
                    }
 | 
			
		||||
                });
 | 
			
		||||
                if ui.button(format!("Edit mode {}", self.edit_mode)).clicked() {
 | 
			
		||||
                    self.edit_mode = !self.edit_mode.clone();
 | 
			
		||||
                    self.edit_mode = !self.edit_mode;
 | 
			
		||||
                }
 | 
			
		||||
            });
 | 
			
		||||
        });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue