Skip to content

Commit f8c9aa1

Browse files
author
Ryzerth
committed
Fixed crash when starting with no source 2
1 parent e364eba commit f8c9aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main_window.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ void drawWindow() {
267267
}
268268
}
269269
else {
270-
if (ImGui::ImageButton(icons::PLAY_RAW, ImVec2(30, 30))) {
270+
if (ImGui::ImageButton(icons::PLAY_RAW, ImVec2(30, 30)) && soapy.devList.size() > 0) {
271271
soapy.start();
272272
soapy.setFrequency(wtf.getCenterFrequency());
273273
playing = true;

0 commit comments

Comments
 (0)