Skip to content

Commit

Permalink
add option to playcount and skipcount to disable their edition in son…
Browse files Browse the repository at this point in the history
…g properties
  • Loading branch information
squentin committed May 13, 2012
1 parent 5ff8072 commit 230b06a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gmusicbrowser_songs.pm
Expand Up @@ -1068,11 +1068,15 @@ our %timespan_menu=
prewrite=> sub { sprintf('%.1f', $_[0]); },
category=>'stats',
alias => 'plays',
edit_order=> 90,
options => 'editable',
},
skipcount =>
{ name => _"Skip count", width => 50, flags => 'fgaescp', type => 'integer', letter => 'k',
category=>'stats',
alias => 'skips',
edit_order=> 91,
options => 'editable',
},
composer =>
{ name => _"Composer", width => 100, flags => 'fgarwescpi', type => 'artist',
Expand Down Expand Up @@ -2700,6 +2704,12 @@ our %Field_options=
$def->{flags}.='rw' if $value;
},
},
editable =>
{ widget => 'check',
label => _"Editable in song properties dialog",
'default' => sub { my $default= $_[0]{flags} || ''; return $default=~m/e/ },
apply => sub { my ($def,$opt,$value)=@_; $def->{flags}=~s/e//g; $def->{flags}.='e' if $value; },
},
resetnotag =>
{ widget => 'check',
label => 'Reset current value if no tag found in file',
Expand Down

0 comments on commit 230b06a

Please sign in to comment.