mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-31 05:23:28 +01:00 
			
		
		
		
	Removed unused divider and commented code on settings page
This commit is contained in:
		| @@ -416,13 +416,17 @@ class _SettingsPageState extends State<SettingsPage> { | |||||||
|                                     value: settingsProvider.useSystemFont, |                                     value: settingsProvider.useSystemFont, | ||||||
|                                     onChanged: (useSystemFont) { |                                     onChanged: (useSystemFont) { | ||||||
|                                       if (useSystemFont) { |                                       if (useSystemFont) { | ||||||
|                                         NativeFeatures.loadSystemFont().then((fontLoadRes) { |                                         NativeFeatures.loadSystemFont() | ||||||
|  |                                             .then((fontLoadRes) { | ||||||
|                                           if (fontLoadRes == 'ok') { |                                           if (fontLoadRes == 'ok') { | ||||||
|                                             settingsProvider.useSystemFont = true; |                                             settingsProvider.useSystemFont = | ||||||
|  |                                                 true; | ||||||
|                                           } else { |                                           } else { | ||||||
|                                             showError(ObtainiumError( |                                             showError( | ||||||
|                                                 tr('systemFontError', args: [fontLoadRes]) |                                                 ObtainiumError(tr( | ||||||
|                                             ), context); |                                                     'systemFontError', | ||||||
|  |                                                     args: [fontLoadRes])), | ||||||
|  |                                                 context); | ||||||
|                                           } |                                           } | ||||||
|                                         }); |                                         }); | ||||||
|                                       } else { |                                       } else { | ||||||
| @@ -628,38 +632,9 @@ class _SettingsPageState extends State<SettingsPage> { | |||||||
|                         label: Text(tr('appLogs'))), |                         label: Text(tr('appLogs'))), | ||||||
|                   ], |                   ], | ||||||
|                 ), |                 ), | ||||||
|                 const Divider( |                 const SizedBox( | ||||||
|                   height: 32, |                   height: 16, | ||||||
|                 ), |                 ) | ||||||
|                 // Padding( |  | ||||||
|                 //   padding: const EdgeInsets.fromLTRB(16, 0, 16, 16), |  | ||||||
|                 //   child: Column(children: [ |  | ||||||
|                 //     Row( |  | ||||||
|                 //       mainAxisAlignment: MainAxisAlignment.spaceBetween, |  | ||||||
|                 //       children: [ |  | ||||||
|                 //         Flexible(child: Text(tr('debugMenu'))), |  | ||||||
|                 //         Switch( |  | ||||||
|                 //             value: settingsProvider.showDebugOpts, |  | ||||||
|                 //             onChanged: (value) { |  | ||||||
|                 //               settingsProvider.showDebugOpts = value; |  | ||||||
|                 //             }) |  | ||||||
|                 //       ], |  | ||||||
|                 //     ), |  | ||||||
|                 //     if (settingsProvider.showDebugOpts) |  | ||||||
|                 //       Column( |  | ||||||
|                 //         crossAxisAlignment: CrossAxisAlignment.stretch, |  | ||||||
|                 //         children: [ |  | ||||||
|                 //           height16, |  | ||||||
|                 //           TextButton( |  | ||||||
|                 //               onPressed: () { |  | ||||||
|                 //                 bgUpdateCheck('taskId', null); |  | ||||||
|                 //                 showMessage(tr('bgTaskStarted'), context); |  | ||||||
|                 //               }, |  | ||||||
|                 //               child: Text(tr('runBgCheckNow'))) |  | ||||||
|                 //         ], |  | ||||||
|                 //       ), |  | ||||||
|                 //   ]), |  | ||||||
|                 // ), |  | ||||||
|               ], |               ], | ||||||
|             ), |             ), | ||||||
|           ) |           ) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user