Skip to content

Commit

Permalink
Do not check for subscription data when no account signed in (#463)
Browse files Browse the repository at this point in the history
## Test plan
- no account signned in -> open a project
  • Loading branch information
mkondratek authored Feb 1, 2024
1 parent b1f3c6a commit 6fe6009
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class AccountSettingChangeListener(project: Project) : ChangeListener(project) {

if (ConfigUtil.isCodyEnabled()) {
CodyToolWindowContent.executeOnInstanceIfNotDisposed(project) {
refreshPanelsVisibility()
refreshSubscriptionTab()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class EndOfTrialNotificationScheduler private constructor(val project: Project)
this.dispose()
}

if (CodyAuthenticationManager.instance.getActiveAccount(project)?.isDotcomAccount() ==
false) {
if (CodyAuthenticationManager.instance.getActiveAccount(project)?.isDotcomAccount() !=
true) {
return@scheduleAtFixedRate
}

Expand Down

0 comments on commit 6fe6009

Please sign in to comment.