-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
make the SVG selector collapsible (+ remove duplicated code) #39421
Conversation
defer loading of SVG icons to only show them when the widget is made visible
The browser should be loading all the svg previews in a seperate thread. At least it was this way in the past.to avoid any delays with this widget. Is something broken with the thread? |
I realised there were some duplicate code.
This basically leads to the same UX than in the screencast, but the freeze is still present.
yes this seems broken. |
This is actually the initial filling with all SVG icons QGIS/src/gui/symbology/qgssvgselectorwidget.cpp Lines 477 to 481 in 29b76f4
I replaced the initial model with a path, and there is no blocking anymore. I would propose to
|
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.
One suggested change. Otherwise I'm good with seeing this merged, good cleanup.
Co-authored-by: Mathieu Pellerin <nirvn.asia@gmail.com>
defer loading of SVG icons to only show them when the widget is made visible
this is mainly code moving to its own-class.
this is quite an improvement to me in the general fluidity when working in projects with many SVGs.
it also make the UI much less cluttered.
I'd consider this as a bug fix.
(It takes about 3 seconds to show the widget as the images are loaded, I get a waiting cursor on my OS which is apparently not visible in the video)