On Wed, Mar 12, 2025 at 11:49:30AM +0100, Jean-Marc Lasgouttes wrote:
> Le 12/03/2025 à 11:47, Jürgen Spitzmüller a écrit :
> > Am Mittwoch, dem 12.03.2025 um 11:38 +0100 schrieb Jean-Marc
> > Lasgouttes:
> > > Isn't it possible to have a single model for these colors and use it
> > > in several combo boxes? I see 21 calls to updateCustomColors just to
> > > open the document settings on an empty document.
> > 
> > Probably. But as I said, this has to wait.
> 
> Fine with me.

Sounds good. One more attempt at a quick-fix-in-the-meantime solution
(tell me if you wish not even to discuss and I will stop). It seems that
addItemSort() is taking up the cycles. We call that inside two loops
inside ColorsCombo::fillComboColor(). Could it potentially make a big
difference to not sort each time in the loop and just sort all after the
loop?

Scott

Attachment: signature.asc
Description: PGP signature

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to