mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-01 00:19:20 +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();
|
this->SwitchToLibraryLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (state == ILibrary::ConnectionState::Disconnected) {
|
||||||
|
this->playback.Stop();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainLayout::OnIndexerStarted() {
|
void MainLayout::OnIndexerStarted() {
|
||||||
|
Loading…
Reference in New Issue
Block a user