add remove-preset-password-warning-of
This commit is contained in:
		
							parent
							
								
									0511cdbb21
								
							
						
					
					
						commit
						48efdcf1f0
					
				| @ -3301,6 +3301,13 @@ Widget buildPresetPasswordWarning() { | |||||||
|         return Text( |         return Text( | ||||||
|             'Error: ${snapshot.error}'); // Show an error message if the Future completed with an error |             'Error: ${snapshot.error}'); // Show an error message if the Future completed with an error | ||||||
|       } else if (snapshot.hasData && snapshot.data == true) { |       } else if (snapshot.hasData && snapshot.data == true) { | ||||||
|  |         final idServer = | ||||||
|  |             bind.mainGetOptionSync(key: 'custom-rendezvous-server'); | ||||||
|  |         if (idServer.isNotEmpty && | ||||||
|  |             bind.mainGetLocalOption(key: "remove-preset-password-warning-of") == | ||||||
|  |                 idServer) { | ||||||
|  |           return SizedBox.shrink(); | ||||||
|  |         } | ||||||
|         return Container( |         return Container( | ||||||
|           color: Colors.yellow, |           color: Colors.yellow, | ||||||
|           child: Column( |           child: Column( | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user