Skip to content

Commit

Permalink
startup : check for existence of queue mode after loading plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
squentin committed Sep 7, 2011
1 parent 0c1c9f5 commit 4ea8522
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions gmusicbrowser.pl
Expand Up @@ -1276,6 +1276,8 @@ sub forksystem

Layout::InitLayouts;
ActivatePlugin($_,'startup') for grep $Options{'PLUGIN_'.$_}, sort keys %Plugins;
Update_QueueActionList();
QueueChanged() if $QueueAction;

CreateMainWindow( $CmdLine{layout}||$Options{Layout} );
ShowHide(0) if $CmdLine{hide} || ($Options{StartInTray} && $Options{UseTray} && $TrayIconAvailable);
Expand Down Expand Up @@ -1926,11 +1928,10 @@ sub ReadSavedTags #load tags _and_ settings
}

delete $Options{LastPlayFilter} unless $Options{RememberPlayFilter};
$Options{SongArray_Queue}=undef unless $Options{RememberQueue};
if ($Options{RememberQueue})
{ $QueueAction= $Options{QueueAction} || '';
$QueueAction='' unless $QActions{$QueueAction};
QueueChanged() if $QueueAction;
$QueueAction= $Options{QueueAction} || '';
unless ($Options{RememberQueue})
{ $Options{SongArray_Queue}=undef;
$QueueAction= '';
}
if ($Options{RememberPlayFilter})
{ $TogLock=$Options{Lock};
Expand Down

0 comments on commit 4ea8522

Please sign in to comment.