-
-
Notifications
You must be signed in to change notification settings - Fork 947
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
Added a deactivate() function to Tab so when switching tabs it hides … #5386
Added a deactivate() function to Tab so when switching tabs it hides … #5386
Conversation
…the active contents. Also removed clearing of the pages so it's not destroyed each time.
First thanks. this one is on my list too. annoys me too much Also code changes will be minimal if you dont use separate function for deactivation and there is an another lag while using global / objects toggle fyi |
Happy to test my change and your PR together. I added deactivate() to match an activate() which made more sense. I have a question. When I do a PR should I add specific reviewers so it gets noticed? e.g. SoftFever, or just open? |
I said check because you said some icons appeared. if there is no additional icons appeared then there is no problem |
Ahh yes. I meant "checked they appeared as expected" as opposed to not appearing correctly due to not rebuilding. My test with your PR was good; your changes looked like they were visible from the bit of testing I did. |
Thanks for the PR. |
No problem. Do you have a document with a list of test cases I should run if doing more changes? |
No document yet. It mainly depends on one's experience to test. For example, for this PR, we usually test by switching printers/tabs, then editing values, then slicing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Let's merge it into the main branch so that more people can test it.
@SoftFever tested few time, parameters on unactive tabs not updates when preset changes |
You'da man |
Hey @akoolenbourke @yw4z |
@SoftFever whats the downside for that? i guess it will not slowdown parameter change until we got 99+ tabs with full of configs. better then rebuilding whole UI elements |
So do you mean, if you changed presets, the inactive tabs don't change and therefore the settings aren't used if you hit 'Slice'? If so, good find and I'll remember it for next time, but man, the UI should have nothing to do with that stuff. Maybe if we find a performance issue and the call points where we need to read the new values are few, we can just reload at that point. I hope I can get more time and familiarity with the code and fix a tonne of performance issues but as I get more used to 3d printing and slicers in general I see that the way most software organises their presets doesn't really work well for how I actually use my printer. I want to be able to do things like have a config where I only setup one set of things for say my Standard quality printing, but if I happen to change to a larger nozzle then just select an option and everything I want to change changes automatically without having to make a whole new independent preset. |
I notice myfix and yw4z's addition isn't in the current main - will it be included at all as it does provide a usability enhancement. If not, is there something else I can do in this regard, such as perform a more broader optimisation pass to the UI stuff? |
@akoolenbourke @yw4z
|
…the active contents. Also removed clearing of the pages so it's not destroyed each time.
Description
When switching between tabs there was a noticeable lag, especially with larger ones like the Quality tab. The Slicer GUI was destroying all the contents of a tab when going away and recreating it if you went back again.
I have changed it so the contents aren't destroyed, just hidden and removed the destruction of the page.
Screenshots/Recordings/Graphs
Fastertabs.mp4
Tests
I have navigated amongst all the tabs many times. Loaded projects and changed filaments and printers to see that the Tab contents still update correctly.
I checked that icons appeared, settings changes are shown correctly (With the undo arrow) and other things.