diff --git a/auth/lib/onboarding/view/onboarding_page.dart b/auth/lib/onboarding/view/onboarding_page.dart index af8793d9ab..dff1fbc179 100644 --- a/auth/lib/onboarding/view/onboarding_page.dart +++ b/auth/lib/onboarding/view/onboarding_page.dart @@ -8,7 +8,6 @@ import 'package:ente_auth/ente_theme_data.dart'; import 'package:ente_auth/events/trigger_logout_event.dart'; import "package:ente_auth/l10n/l10n.dart"; import 'package:ente_auth/locale.dart'; -import 'package:ente_auth/services/preference_service.dart'; import 'package:ente_auth/theme/text_style.dart'; import 'package:ente_auth/ui/account/email_entry_page.dart'; import 'package:ente_auth/ui/account/login_page.dart'; @@ -50,7 +49,6 @@ class _OnboardingPageState extends State { await autoLogoutAlert(context); }); super.initState(); - PreferenceService.instance.configureDefaults().ignore(); } @override diff --git a/auth/lib/services/preference_service.dart b/auth/lib/services/preference_service.dart index 73dc00fad9..ba43e69be3 100644 --- a/auth/lib/services/preference_service.dart +++ b/auth/lib/services/preference_service.dart @@ -57,12 +57,6 @@ class PreferenceService { await _prefs.setBool(kCompactMode, value); } - Future configureDefaults() async { - if (!_prefs.containsKey(kCompactMode)) { - await _prefs.setBool(kCompactMode, true); - } - } - Future setHideCodes(bool value) async { await _prefs.setBool(kShouldHideCodesKey, value); Bus.instance.fire(IconsChangedEvent()); diff --git a/auth/lib/ui/settings/security_section_widget.dart b/auth/lib/ui/settings/security_section_widget.dart index 9739053060..7cc6e870b8 100644 --- a/auth/lib/ui/settings/security_section_widget.dart +++ b/auth/lib/ui/settings/security_section_widget.dart @@ -102,16 +102,7 @@ class _SecuritySectionWidgetState extends State { trailingIcon: Icons.chevron_right_outlined, trailingIconIsMuted: true, onTap: () async { - final bool hasAuthenticated = await LocalAuthenticationService - .instance - .requestLocalAuthentication( - context, - context.l10n.authToViewPasskey, - ); - await PlatformUtil.refocusWindows(); - if (hasAuthenticated) { - await onPasskeyClick(context); - } + await onPasskeyClick(context); }, ), sectionOptionSpacing, diff --git a/auth/lib/ui/settings_page.dart b/auth/lib/ui/settings_page.dart index 0e99a1ea36..fc00a1eefe 100644 --- a/auth/lib/ui/settings_page.dart +++ b/auth/lib/ui/settings_page.dart @@ -142,7 +142,10 @@ class SettingsPage extends StatelessWidget { sectionSpacing, ]); - if (Platform.isAndroid || kDebugMode) { + if (Platform.isAndroid || + Platform.isWindows || + Platform.isLinux || + kDebugMode) { contents.addAll([ const ThemeSwitchWidget(), sectionSpacing,