 ae4667a3bd
			
		
	
	
		ae4667a3bd
		
			
		
	
	
	
	
		
			
			# Objective
The `example-showcase` command is failing to run.
```
 cargo run --release -p example-showcase -- run --screenshot --in-ci                                  
    Updating crates.io index
   Compiling example-showcase v0.14.0-dev (/Users/robparrett/src/bevy/tools/example-showcase)
    Finished release [optimized] target(s) in 2.59s
     Running `target/release/example-showcase run --screenshot --in-ci`
$ git apply --ignore-whitespace tools/example-showcase/remove-desktop-app-mode.patch
error: patch failed: crates/bevy_winit/src/winit_config.rs:29
error: crates/bevy_winit/src/winit_config.rs: patch does not apply
thread 'main' panicked at tools/example-showcase/src/main.rs:203:18:
called `Result::unwrap()` on an `Err` value: command exited with non-zero code `git apply --ignore-whitespace tools/example-showcase/remove-desktop-app-mode.patch`: 1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
## Solution
Update `remove-desktop-app-mode.patch`.
		
	
			
		
			
				
	
	
		
			21 lines
		
	
	
		
			748 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			748 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| diff --git a/crates/bevy_winit/src/winit_config.rs b/crates/bevy_winit/src/winit_config.rs
 | |
| index f2cb424ec..e68e01de0 100644
 | |
| --- a/crates/bevy_winit/src/winit_config.rs
 | |
| +++ b/crates/bevy_winit/src/winit_config.rs
 | |
| @@ -31,14 +31,7 @@ impl WinitSettings {
 | |
|      ///
 | |
|      /// Use the [`EventLoopProxy`](crate::EventLoopProxy) to request a redraw from outside bevy.
 | |
|      pub fn desktop_app() -> Self {
 | |
| -        WinitSettings {
 | |
| -            focused_mode: UpdateMode::Reactive {
 | |
| -                wait: Duration::from_secs(5),
 | |
| -            },
 | |
| -            unfocused_mode: UpdateMode::ReactiveLowPower {
 | |
| -                wait: Duration::from_secs(60),
 | |
| -            },
 | |
| -        }
 | |
| +        Self::default()
 | |
|      }
 | |
|  
 | |
|      /// Returns the current [`UpdateMode`].
 |