Skip to content

Commit

Permalink
refresh button
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Busse committed Nov 14, 2023
1 parent 82c7b45 commit 2f39463
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/ui/flowgraphitem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -710,6 +710,14 @@ void FlowGraphItem::drawAddSourceDialog(FlowGraph *fg) {
ImGui::SetNextWindowSize(ImGui::GetContentRegionAvail(), ImGuiCond_Once);
ImGui::BeginChild("Signals");
signalList.drawElements();

float refreshButtonPosX = ImGui::GetWindowWidth() - ImGui::GetStyle().ItemSpacing.x - ImGui::GetStyle().FramePadding.x - ImGui::CalcTextSize("Refresh").x;
float refreshButtonPosY = ImGui::GetWindowHeight() - ImGui::GetStyle().ItemSpacing.y - ImGui::GetStyle().FramePadding.y - ImGui::CalcTextSize("Refresh").y;
ImGui::SetCursorPos({refreshButtonPosX, refreshButtonPosY});
if (ImGui::Button("Refresh")) {
signalList.update();
}

ImGui::EndChild();
}

Expand Down

0 comments on commit 2f39463

Please sign in to comment.