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

improve status bar with stat generation progress #183

Merged
merged 6 commits into from
Mar 9, 2024

Conversation

ix0rai
Copy link
Member

@ix0rai ix0rai commented Feb 26, 2024

@ix0rai ix0rai added backend affects the enigma backend user interface affects the enigma ui enhancement New feature or request labels Feb 26, 2024
@ix0rai ix0rai marked this pull request as ready for review March 3, 2024 01:38
Copy link
Member

@IotaBread IotaBread left a comment

Choose a reason for hiding this comment

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

Looks great!

@@ -167,8 +168,15 @@ public CompletableFuture<Void> openMappings(MappingFormat format, Path path) {
this.refreshClasses();
this.chp.invalidateJavadoc();
this.statsGenerator = new StatsGenerator(this.project);
new Thread(() -> {
Copy link
Member

Choose a reason for hiding this comment

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

This is already inside another secondary thread, and I feel like we have a better way to spawn threads instead of new Thread()

Copy link
Member

Choose a reason for hiding this comment

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

Is it executor time?

Copy link
Member Author

Choose a reason for hiding this comment

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

I have no idea what the best way of doing this would be, this is kinda a bodge that just got left in because I don't know what's better

@ix0rai
Copy link
Member Author

ix0rai commented Mar 5, 2024

thanks gorge

@ix0rai ix0rai merged commit b624e1f into QuiltMC:master Mar 9, 2024
2 checks passed
@ix0rai ix0rai deleted the progress-sync branch April 5, 2024 01:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend affects the enigma backend enhancement New feature or request user interface affects the enigma ui
Projects
None yet
3 participants