Skip to content

Commit 5d6257e

Browse files
committed
Fix bug
1 parent 0377725 commit 5d6257e

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

lib/app/layouts/settings/pages/profile/profile_panel.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ class _ProfilePanelState extends OptimizedState<ProfilePanel> with WidgetsBindin
130130
handlePurchases(details);
131131
});
132132
if (pushService.state!.icloudServices != null) api.getQuotaInfo(info: pushService.state!.icloudServices!.tokenProvider).then((quota) => quotaInfo.value = quota);
133-
pushService.googleSignIn.signInOffline().then((state) {
134-
googleCreds.value = state;
135-
});
133+
if (kIsDesktop) {
134+
pushService.googleSignIn.signInOffline().then((state) {
135+
googleCreds.value = state;
136+
});
137+
}
136138
// api.countRecords(state: pushService.state).then((summary) => cloudMessageSummary.value = summary);
137139
}
138140

lib/app/layouts/setup/pages/rustpush/finalize.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ class _FinalizePageState extends OptimizedState<FinalizePage> {
4444
handles = result;
4545
});
4646
});
47-
pushService.googleSignIn.signInOffline().then((state) {
48-
googleCreds.value = state;
49-
});
47+
if (kIsDesktop) {
48+
pushService.googleSignIn.signInOffline().then((state) {
49+
googleCreds.value = state;
50+
});
51+
}
5052
}
5153

5254
@override

0 commit comments

Comments
 (0)