gui: Play next song after banning
If the user tells us they don't like the current song then we shouldn't keep playing it! Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
d185b29d7b
commit
cfa61fa816
|
@ -107,9 +107,10 @@ static void on_ban_toggled()
|
|||
{
|
||||
Gtk::ToggleButton *ban = get_widget<Gtk::ToggleButton>("o_ban");
|
||||
|
||||
if (ban->get_active() == true)
|
||||
if (ban->get_active() == true) {
|
||||
playlist :: add(audio :: current_track(), "Banned");
|
||||
else
|
||||
on_next();
|
||||
} else
|
||||
playlist :: del(audio::current_track(), "Banned");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue