Skip to content

Commit

Permalink
add a warning when using a gmbrc from a future version
Browse files Browse the repository at this point in the history
  • Loading branch information
squentin committed Jun 2, 2012
1 parent e77f26a commit 3d21002
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gmusicbrowser.pl
Expand Up @@ -2016,6 +2016,7 @@ sub ReadSavedTags #load tags _and_ settings
SongArray::start_init(); #every SongArray read in Options will be updated to new IDs by SongArray::updateIDs later
ReadRefFromLines($lines{Options},\%Options);
$oldversion||=delete $Options{version} || VERSION; # for version <=1.1.7
if ($oldversion>VERSION) { warn "Loading a gmbrc saved with a more recent version of gmusicbrowser, try upgrading gmusicbrowser if there are problems\n"; }
if ($oldversion<1.1007) {delete $Options{$_} for qw/Diacritic_sort gst_volume Simplehttp_CacheSize/;} #cleanup old options
$Options{AutoRemoveCurrentSong}= delete $Options{TAG_auto_check_current} if $oldversion<1.1005 && exists $Options{TAG_auto_check_current};
$Options{PlayedMinPercent}= 100*delete $Options{PlayedPercent} if exists $Options{PlayedPercent};
Expand Down

0 comments on commit 3d21002

Please sign in to comment.