Skip to content

Conversation

cmm21
Copy link
Contributor

@cmm21 cmm21 commented Oct 10, 2025

No description provided.

if (installedManifest) {
this.log(`vision needs update: ${installedManifest.version} -> ${latestManifest.version}`);
// silently update in the background
await this.ensureUpdated({ startAfterUpdate: false });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does the silent update, should we be passing false here? I would think we want it to auto-start after updating in the background. Maybe I'm missing something, let me know!

edit: nvm, I see that we call ensureStarted further down on this method, so it should call that after the update. I'm realizing now that this method I made is a bit chaotic 😅

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Part of me feels like we should just be doing things like

await this.ensureUpdated()
return await this.ensureRunning();

and just remove that startAfterUpdate param for good. Maybe for another day...

return await this.authPostWithTimeout(
`https://${this.hostsService.streamlabs}/api/v5/vision/desktop/test-event`,
{
game: "fortnite", // default to fortnite for now
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does "common" work? that way it would trigger for other sources that aren't specifically "fortnite"

although then I guess it wouldn't trigger for reactive state bound specifically to fortnite... so maybe not lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants