slartibartfast wrote: 
> I have a Touch and a piCorePlayer in a group. Both players have "Defeat
> destructive Touch-To-Play" in basic settings in LMS. The group player
> doesn't have this setting so it is easy to destroy a playlist when using
> a Duet Controller to add tracks. Would it be possible to add this
> feature?
> 
> Sent from my Pixel 3a using Tapatalk

Unfortunately not. I have a generic model to add "common" preferences to
Group, so that would be just a one line adder here, but LMS has a check
for the model to be a "SqueezePlay" before it saves Defeat TTP (see
Slim::Web::Settings::Player::Basic.pm)

Code:
--------------------
    
        if ($paramRef->{'saveSettings'}) {
  
                for my $pref (@prefs) {
  
                        my $i = 0;
                        my @array;
  
                        while (defined $paramRef->{'pref_'.$pref.$i}) {
  
                                if ($paramRef->{'pref_'.$pref.$i} ne "-1") 
{push @array, $paramRef->{'pref_'.$pref.$i};}
                                $i++;
                        }
  
                        $prefs->client($client)->set($pref, \@array);
                }
  
                if ($client->isPlayer && 
$client->isa('Slim::Player::SqueezePlay') && defined 
$paramRef->{'defeatDestructiveTouchToPlay'}) {
                        
$prefs->client($client)->set('defeatDestructiveTouchToPlay', 
$paramRef->{'defeatDestructiveTouchToPlay'});
                }
        }
  
--------------------



LMS 7.9  on Pi 3B+ & Odroid-C2 - *SqueezeAMP!*, 5xRadio, 3xBoom, 4xDuet,
1xTouch, 1 SB3. Sonos PLAY:3, PLAY:5, Marantz NR1603, Foobar2000,
ShairPortW, JRiver 21, 2xChromecast Audio, Chromecast v1 and v2,
Squeezelite on Pi,  Yamaha WX-010, AppleTV 4, Airport Express, GGMM E5,
Riva 1 & 3
------------------------------------------------------------------------
philippe_44's Profile: http://forums.slimdevices.com/member.php?userid=17261
View this thread: http://forums.slimdevices.com/showthread.php?t=108558

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to