Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update status from Splash screen to keep StatusIndicator up to date #1637

Conversation

VilppeRiskidev
Copy link
Collaborator

No description provided.

@VilppeRiskidev VilppeRiskidev self-assigned this Feb 18, 2025
Copy link
Collaborator

@anttimaki anttimaki left a comment

Choose a reason for hiding this comment

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

Care to elaborate what's the idea here (the commit message is a bit vague)? Is it intentional that the status indicator wakes up only when we start reading the mods to Vuex?

@@ -149,7 +149,9 @@ export default class SplashMixin extends Vue {
this.loadingText = 'Processing the mod list';

try {
await this.$store.commit('tsMods/startThunderstoreModListUpdate');
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need to await commits as they're synchronous.

await this.$store.dispatch('tsMods/updateMods');
await this.$store.commit('tsMods/finishThunderstoreModListUpdate');
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this should be placed in finally block so the "in progress" status isn't left on if the process fails?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

good point, this doesn't even have to be done on r2mm side...

@VilppeRiskidev VilppeRiskidev force-pushed the status-indicator-index-and-splash-screen branch from f041433 to 450dbc4 Compare February 19, 2025 12:21
@VilppeRiskidev
Copy link
Collaborator Author

New PR replaces this one on TSMM: https://github.com/thunderstore-io/thunderstore-mod-manager/pull/314

@VilppeRiskidev VilppeRiskidev deleted the status-indicator-index-and-splash-screen branch February 19, 2025 12:40
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