mirror of
https://github.com/clangen/musikcube.git
synced 2024-12-29 00:17:49 +00:00
Stop playback on library disconnect.
This commit is contained in:
parent
6e55abb2d6
commit
710f237b04
@ -291,6 +291,10 @@ void MainLayout::OnLibraryConnectionStateChanged(ILibrary::ConnectionState state
|
||||
{
|
||||
this->SwitchToLibraryLayout();
|
||||
}
|
||||
|
||||
if (state == ILibrary::ConnectionState::Disconnected) {
|
||||
this->playback.Stop();
|
||||
}
|
||||
}
|
||||
|
||||
void MainLayout::OnIndexerStarted() {
|
||||
|
Loading…
Reference in New Issue
Block a user