Merge pull request #361 from Heasn/master
fix pre-login window behavior on macOS Big Sur or above
This commit is contained in:
		
						commit
						03fb47b312
					
				
							
								
								
									
										4
									
								
								.cargo/config.toml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.cargo/config.toml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,4 @@ | ||||
| [target.'cfg(target_os="macos")'] | ||||
| rustflags = [ | ||||
|     "-C", "link-args=-sectcreate __CGPreLoginApp __cgpreloginapp /dev/null", | ||||
| ] | ||||
| @ -904,12 +904,10 @@ async fn start_ipc( | ||||
|     mut rx_to_cm: mpsc::UnboundedReceiver<ipc::Data>, | ||||
|     tx_from_cm: mpsc::UnboundedSender<ipc::Data>, | ||||
| ) -> ResultType<()> { | ||||
|     loop { | ||||
|         if !crate::platform::is_prelogin() { | ||||
|             break; | ||||
|         } | ||||
|         sleep(1.).await; | ||||
|     if crate::platform::is_prelogin() { | ||||
|         return Ok(()); | ||||
|     } | ||||
| 
 | ||||
|     let mut stream = None; | ||||
|     if let Ok(s) = crate::ipc::connect(1000, "_cm").await { | ||||
|         stream = Some(s); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user