fix warp generation
This commit is contained in:
@@ -256,23 +256,20 @@ class AddProfileModal extends HookConsumerWidget {
|
|||||||
builder: (context) => const WarpLicenseAgreementModal(),
|
builder: (context) => const WarpLicenseAgreementModal(),
|
||||||
);
|
);
|
||||||
|
|
||||||
if (agreed ?? false) {
|
if (agreed != true) return;
|
||||||
|
}
|
||||||
await _prefs.setBool(warpConsentGiven, true);
|
await _prefs.setBool(warpConsentGiven, true);
|
||||||
final toast = notification.showInfoToast(t.profile.add.addingWarpMsg, duration: const Duration(milliseconds: 100));
|
var toast = notification.showInfoToast(t.profile.add.addingWarpMsg, duration: const Duration(milliseconds: 100));
|
||||||
toast?.pause();
|
toast?.pause();
|
||||||
await _warp.generateWarpConfig();
|
await _warp.generateWarpConfig();
|
||||||
toast?.start();
|
toast?.start();
|
||||||
} else {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// final accountId = _prefs.getString("warp2-account-id");
|
// final accountId = _prefs.getString("warp2-account-id");
|
||||||
// final accessToken = _prefs.getString("warp2-access-token");
|
// final accessToken = _prefs.getString("warp2-access-token");
|
||||||
// final hasWarp2Config = accountId != null && accessToken != null;
|
// final hasWarp2Config = accountId != null && accessToken != null;
|
||||||
|
|
||||||
// if (!hasWarp2Config || true) {
|
// if (!hasWarp2Config || true) {
|
||||||
final toast = notification.showInfoToast(t.profile.add.addingWarpMsg, duration: const Duration(milliseconds: 100));
|
toast = notification.showInfoToast(t.profile.add.addingWarpMsg, duration: const Duration(milliseconds: 100));
|
||||||
toast?.pause();
|
toast?.pause();
|
||||||
await _warp.generateWarp2Config();
|
await _warp.generateWarp2Config();
|
||||||
toast?.start();
|
toast?.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user