Bug #2405

Settings behaving strange in duktape

Added by Leonid Protasov over 6 years ago. Updated over 6 years ago.

Status:FixedStart date:12/17/2014
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:API
Target version:4.8
Found in version:4.7.529 Platform:Linux

Description

The code:

    var videoQualities = [
        ['0', 'Source', true], ['1', 'High'], ['2', 'Medium'], ['3', 'Low'], ['4', 'Mobile']
    ];
    settings.createMultiOpt("videoQuality", "Video Quality", videoQualities, function(v) {
        service.videoQuality = v;
    });

At plugin runtime its ok - service.videoQuality = '0'. But if you go to the home screen and go to settings and change it to some other value - service.videoQuality becomes 'videoQuality'. It's ok on javascript but bad on ecmascript...

Reproducible on twitchtv plugin.

Associated revisions

Revision 3881e1ca
Added by Andreas Smas over 6 years ago

ecmascript/settings: Fix broken setup of multiopt settings

Fixes #2405

Change included in version 4.7.531

History

#1 Updated by Andreas Smas over 6 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Also available in: Atom PDF