From 88d375faebd0e6c1e844bd258248ee1386524656 Mon Sep 17 00:00:00 2001
From: Kima <kimavideos97@gmail.com>
Date: Sun, 21 Apr 2024 15:32:06 +0200
Subject: [PATCH] shit

---
 .../settings/submenu/calendar_sync.dart       | 86 +++++++++----------
 1 file changed, 43 insertions(+), 43 deletions(-)

diff --git a/lib/ui/mobile/settings/submenu/calendar_sync.dart b/lib/ui/mobile/settings/submenu/calendar_sync.dart
index d52cb73..c69d330 100644
--- a/lib/ui/mobile/settings/submenu/calendar_sync.dart
+++ b/lib/ui/mobile/settings/submenu/calendar_sync.dart
@@ -34,52 +34,52 @@ class MenuCalendarSync extends StatelessWidget {
   Widget build(BuildContext context) {
     return PanelButton(
       onPressed: () async {
-        if (!Provider.of<PlusProvider>(context, listen: false)
-            .hasScope(PremiumScopes.calendarSync)) {
-          return PlusLockedFeaturePopup.show(
-              context: context, feature: PremiumFeature.calendarSync);
-        }
+        // if (!Provider.of<PlusProvider>(context, listen: false)
+        //     .hasScope(PremiumScopes.calendarSync)) {
+        //   return PlusLockedFeaturePopup.show(
+        //       context: context, feature: PremiumFeature.calendarSync);
+        // }
 
-        Navigator.of(context, rootNavigator: true).push(CupertinoPageRoute(
-            builder: (context) => const CalendarSyncScreen()));
-        // showDialog(
-        //   context: context,
-        //   builder: (context) => AlertDialog(
-        //     title: const Text("Figyelem!"),
-        //     content: const Text(
-        //         "A naptár szinkronizálás csak azután fog működni, hogy a Google elfogadja az OAuth kérelmünket, addig is szíves türelmeteket kérjük! Amint ez megtörténik, értesíteni fogunk titeket Discord-on, valamint alkalmazáson belüli hírekben is."),
-        //     actions: [
-        //       TextButton(
-        //         child: const Text(
-        //           "Vissza",
-        //           style: TextStyle(fontWeight: FontWeight.w500),
-        //         ),
-        //         onPressed: () {
-        //           Navigator.of(context).pop();
-        //         },
-        //       ),
-        //       TextButton(
-        //         child: const Text(
-        //           "Tovább",
-        //           style: TextStyle(fontWeight: FontWeight.w500),
-        //         ),
-        //         onPressed: () {
-        //           Navigator.of(context).pop();
+        // Navigator.of(context, rootNavigator: true).push(CupertinoPageRoute(
+        //     builder: (context) => const CalendarSyncScreen()));
+        showDialog(
+          context: context,
+          builder: (context) => AlertDialog(
+            title: const Text("Figyelem!"),
+            content: const Text(
+                "A naptár szinkronizálás csak azután fog működni, hogy a Google elfogadja az OAuth kérelmünket, addig is szíves türelmeteket kérjük! Amint ez megtörténik, értesíteni fogunk titeket Discord-on, valamint alkalmazáson belüli hírekben is."),
+            actions: [
+              TextButton(
+                child: const Text(
+                  "Vissza",
+                  style: TextStyle(fontWeight: FontWeight.w500),
+                ),
+                onPressed: () {
+                  Navigator.of(context).pop();
+                },
+              ),
+              TextButton(
+                child: const Text(
+                  "Tovább",
+                  style: TextStyle(fontWeight: FontWeight.w500),
+                ),
+                onPressed: () {
+                  Navigator.of(context).pop();
 
-        //           if (!Provider.of<PlusProvider>(context, listen: false)
-        //               .hasScope(PremiumScopes.calendarSync)) {
-        //             return PlusLockedFeaturePopup.show(
-        //                 context: context, feature: PremiumFeature.calendarSync);
-        //           }
+                  if (!Provider.of<PlusProvider>(context, listen: false)
+                      .hasScope(PremiumScopes.calendarSync)) {
+                    return PlusLockedFeaturePopup.show(
+                        context: context, feature: PremiumFeature.calendarSync);
+                  }
 
-        //           Navigator.of(context, rootNavigator: true).push(
-        //               CupertinoPageRoute(
-        //                   builder: (context) => const CalendarSyncScreen()));
-        //         },
-        //       ),
-        //     ],
-        //   ),
-        // );
+                  Navigator.of(context, rootNavigator: true).push(
+                      CupertinoPageRoute(
+                          builder: (context) => const CalendarSyncScreen()));
+                },
+              ),
+            ],
+          ),
+        );
       },
       title: Text(
         "calendar_sync".i18n,