diff --git a/src/ImGuiVisitor.cpp b/src/ImGuiVisitor.cpp index f101dca..f3106ef 100644 --- a/src/ImGuiVisitor.cpp +++ b/src/ImGuiVisitor.cpp @@ -741,7 +741,7 @@ void ImGuiVisitor::visit (RenderSource& s) if (ImGuiToolkit::IconButton(ICON_FA_PLAY_CIRCLE, "Open in Player")) UserInterface::manager().showSourceEditor(&s); ImGui::SameLine(); - if (ImGuiToolkit::IconButton(ICON_FA_WINDOW_MAXIMIZE, "Show Output")) + if (ImGuiToolkit::IconButton(ICON_FA_LAPTOP, "Show Output")) Settings::application.widget.preview = true; ImGui::SetCursorPos(pos); diff --git a/src/UserInterfaceManager.cpp b/src/UserInterfaceManager.cpp index 3b8f83d..88a4eab 100644 --- a/src/UserInterfaceManager.cpp +++ b/src/UserInterfaceManager.cpp @@ -8333,19 +8333,10 @@ SourcePreview::SourcePreview() : source_(nullptr), label_(""), reset_(0) } -static void deletesource(Source *s) -{ - delete s; -} - void SourcePreview::setSource(Source *s, const string &label) { - if(source_) { - if (source_->ready()) - delete source_; - else - std::thread (deletesource, source_).detach(); - } + if(source_) + delete source_; source_ = s; label_ = label;