Fixed crash when starting with no source 2

This commit is contained in:
Ryzerth 2020-07-20 18:18:49 +02:00
parent e364ebac6d
commit f8c9aa1be4

View File

@ -267,7 +267,7 @@ void drawWindow() {
}
}
else {
if (ImGui::ImageButton(icons::PLAY_RAW, ImVec2(30, 30))) {
if (ImGui::ImageButton(icons::PLAY_RAW, ImVec2(30, 30)) && soapy.devList.size() > 0) {
soapy.start();
soapy.setFrequency(wtf.getCenterFrequency());
playing = true;