diff --git a/deadlock-plugins/deadlock-extension/src/core/controller.ts b/deadlock-plugins/deadlock-extension/src/core/controller.ts index 27dc4631691897fd4b5cb23322f2c5ce5bfc7852..7a8396c873e7c110d5096ac4dc13b07760ddc939 100644 --- a/deadlock-plugins/deadlock-extension/src/core/controller.ts +++ b/deadlock-plugins/deadlock-extension/src/core/controller.ts @@ -37,7 +37,13 @@ export default class Controller { } }, }); + this.init(); } + async init() { + const exensionStorage = ExtensionStore.getInstance(); + this.gettingStartedView.isAlreadyConnected = !!(await exensionStorage.getAccessToken()); + } + async authenticate() { const tokens = await this.connection.getToken({ openLink: Controller.openBrowserWithUrl }); const exensionStorage = ExtensionStore.getInstance();