refact: custom client, remove enable-check-update (#8092)
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
		
							parent
							
								
									3c502c6fc2
								
							
						
					
					
						commit
						986b9fb0e0
					
				| @ -658,10 +658,12 @@ class _DesktopHomePageState extends State<DesktopHomePage> | |||||||
|   @override |   @override | ||||||
|   void initState() { |   void initState() { | ||||||
|     super.initState(); |     super.initState(); | ||||||
|     Timer(const Duration(seconds: 1), () async { |     if (!bind.isCustomClient()) { | ||||||
|       updateUrl = await bind.mainGetSoftwareUpdateUrl(); |       Timer(const Duration(seconds: 1), () async { | ||||||
|       if (updateUrl.isNotEmpty) setState(() {}); |         updateUrl = await bind.mainGetSoftwareUpdateUrl(); | ||||||
|     }); |         if (updateUrl.isNotEmpty) setState(() {}); | ||||||
|  |       }); | ||||||
|  |     } | ||||||
|     _updateTimer = periodic_immediate(const Duration(seconds: 1), () async { |     _updateTimer = periodic_immediate(const Duration(seconds: 1), () async { | ||||||
|       await gFFI.serverModel.fetchID(); |       await gFFI.serverModel.fetchID(); | ||||||
|       final error = await bind.mainGetError(); |       final error = await bind.mainGetError(); | ||||||
|  | |||||||
| @ -392,12 +392,13 @@ class _GeneralState extends State<_General> { | |||||||
|           child: _OptionCheckBox(context, "Always use software rendering", |           child: _OptionCheckBox(context, "Always use software rendering", | ||||||
|               kOptionAllowAlwaysSoftwareRender), |               kOptionAllowAlwaysSoftwareRender), | ||||||
|         ), |         ), | ||||||
|         _OptionCheckBox( |         if (!bind.isCustomClient()) | ||||||
|           context, |           _OptionCheckBox( | ||||||
|           'Check for software update on startup', |             context, | ||||||
|           kOptionEnableCheckUpdate, |             'Check for software update on startup', | ||||||
|           isServer: false, |             kOptionEnableCheckUpdate, | ||||||
|         ) |             isServer: false, | ||||||
|  |           ) | ||||||
|       ], |       ], | ||||||
|     ]; |     ]; | ||||||
|     if (bind.mainShowOption(key: kOptionAllowLinuxHeadless)) { |     if (bind.mainShowOption(key: kOptionAllowLinuxHeadless)) { | ||||||
|  | |||||||
| @ -65,10 +65,12 @@ class _ConnectionPageState extends State<ConnectionPage> { | |||||||
|       }(); |       }(); | ||||||
|     } |     } | ||||||
|     if (isAndroid) { |     if (isAndroid) { | ||||||
|       Timer(const Duration(seconds: 1), () async { |       if (!bind.isCustomClient()) { | ||||||
|         _updateUrl = await bind.mainGetSoftwareUpdateUrl(); |         Timer(const Duration(seconds: 1), () async { | ||||||
|         if (_updateUrl.isNotEmpty) setState(() {}); |           _updateUrl = await bind.mainGetSoftwareUpdateUrl(); | ||||||
|       }); |           if (_updateUrl.isNotEmpty) setState(() {}); | ||||||
|  |         }); | ||||||
|  |       } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     _idController.addListener(() { |     _idController.addListener(() { | ||||||
|  | |||||||
| @ -2090,7 +2090,6 @@ pub mod keys { | |||||||
|         OPTION_LANGUAGE, |         OPTION_LANGUAGE, | ||||||
|         OPTION_ENABLE_CONFIRM_CLOSING_TABS, |         OPTION_ENABLE_CONFIRM_CLOSING_TABS, | ||||||
|         OPTION_ENABLE_OPEN_NEW_CONNECTIONS_IN_TABS, |         OPTION_ENABLE_OPEN_NEW_CONNECTIONS_IN_TABS, | ||||||
|         OPTION_ENABLE_CHECK_UPDATE, |  | ||||||
|         OPTION_SYNC_AB_WITH_RECENT_SESSIONS, |         OPTION_SYNC_AB_WITH_RECENT_SESSIONS, | ||||||
|         OPTION_SYNC_AB_TAGS, |         OPTION_SYNC_AB_TAGS, | ||||||
|         OPTION_FILTER_AB_BY_INTERSECTION, |         OPTION_FILTER_AB_BY_INTERSECTION, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user