From 4277f0662aaed93ea66dae4ca9f31940e2e65c2b Mon Sep 17 00:00:00 2001 From: Kima Date: Sun, 16 Jun 2024 21:33:33 +0200 Subject: [PATCH] added back premium check --- .../lib/pages/grades/grades_page.dart | 16 ++++++---------- refilc_plus | 2 +- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/refilc_mobile_ui/lib/pages/grades/grades_page.dart b/refilc_mobile_ui/lib/pages/grades/grades_page.dart index 5992cc9..4e6163d 100644 --- a/refilc_mobile_ui/lib/pages/grades/grades_page.dart +++ b/refilc_mobile_ui/lib/pages/grades/grades_page.dart @@ -728,12 +728,12 @@ class GradesPageState extends State { return; } - // if (!Provider.of(context, listen: false) - // .hasScope(PremiumScopes.gradeExporting)) { - // PlusLockedFeaturePopup.show( - // context: context, feature: PremiumFeature.gradeExporting); - // return; - // } + if (!Provider.of(context, listen: false) + .hasScope(PremiumScopes.gradeExporting)) { + PlusLockedFeaturePopup.show( + context: context, feature: PremiumFeature.gradeExporting); + return; + } // show file picker FilePicker.platform.pickFiles( @@ -750,10 +750,6 @@ class GradesPageState extends State { generateTiles(); setState(() {}); - - print(content); - print(json); - print(jsonGrades.map((e) => e.json)); } }); diff --git a/refilc_plus b/refilc_plus index ac93b31..c01a024 160000 --- a/refilc_plus +++ b/refilc_plus @@ -1 +1 @@ -Subproject commit ac93b31cbc8a3ce2a9e9e2036e2f2ae4ffbe51f3 +Subproject commit c01a0249b9266346d8e812fe026dc933500ceac7