Moon-0xff / gnome-mpris-label

A music related GNOME extension.
GNU General Public License v3.0
56 stars 11 forks source link

fix reset for single DropDown #81

Closed Batwam closed 1 year ago

Batwam commented 1 year ago

in relation to #80, see update to fix reset button for single DropDowns. The variables should have been arrays.

Moon-0xff commented 1 year ago

Ah! Now I get it. addDropDownList returns an array.

Another fix would be to return the first element of the array on addDropDown:

function addDropDown(group,settings,labelstring,options,labeltooltip,width=105){
        return addDropDownsList(group, [settings], labelstring, [options], labeltooltip,width)[0];
}

But I think your solution is better.

I'll merge this right away.