ddb_musical_spectrum icon indicating copy to clipboard operation
ddb_musical_spectrum copied to clipboard

[Feature request] Multiple widgets of same type

Open LisandraBrave opened this issue 5 years ago • 3 comments

It'd be very useful to be able to put multiple copies in so that you could have one for each audio channel.

LisandraBrave avatar Dec 17 '19 01:12 LisandraBrave

I agree this would be great, but for this to work the configuration of the spectrum needs to be stored for each spectrum widget individually, which is quite cumbersome to do with the current GTKUI plugin API. That's why I'm probably not going to implement that anytime soon.

cboxdoerfer avatar Dec 18 '19 15:12 cboxdoerfer

Taking a peek at the plugin API, wouldn't it be possible to read in if there's another instance of the same plugin, and if so, load in configuration from the same file, but in a different subsection?

LisandraBrave avatar Dec 19 '19 01:12 LisandraBrave

Maybe, but there are a few things to consider:

  • this approach must not depend on the order in which widgets get created, because that's an implementation detail.
  • the config must not get lost when copy/pasting the widget
  • the config shouldn't get cluttered with new subsections when users change their layout frequently.

I'm not sure if this can be done nicely.

cboxdoerfer avatar Dec 19 '19 09:12 cboxdoerfer