From 32dacdcd6507484a2f7bb005324fa64a2a29a2ed Mon Sep 17 00:00:00 2001 From: tildearrow Date: Tue, 18 Nov 2025 03:09:22 -0500 Subject: [PATCH] fix refPlayer cue input time error false positive --- src/gui/refPlayer.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/refPlayer.cpp b/src/gui/refPlayer.cpp index f7f46cd2c..cd8d05e59 100644 --- a/src/gui/refPlayer.cpp +++ b/src/gui/refPlayer.cpp @@ -109,17 +109,20 @@ void FurnaceGUI::drawRefPlayer() { if (ImGui::IsItemClicked(ImGuiMouseButton_Middle)) { fp->setPos(0); } + if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) { + TimeMicros cueTime=e->getFilePlayerCue(); + fpCueInput=cueTime.toString(-1,TA_TIME_FORMAT_AUTO); + } if (ImGui::BeginPopupContextItem("Edit Cue Position",ImGuiPopupFlags_MouseButtonRight)) { ImGui::TextUnformatted(_("Set cue position at first order:")); TimeMicros cueTime=e->getFilePlayerCue(); bool altered=false; - fpCueInput=cueTime.toString(-1,TA_TIME_FORMAT_AUTO); pushWarningColor(false,fpCueInputFailed); if (ImGui::InputText("##CuePos",&fpCueInput)) { + fpCueInputFailed=false; try { cueTime=TimeMicros::fromString(fpCueInput); altered=true; - fpCueInputFailed=false; } catch (std::invalid_argument& e) { fpCueInputFailed=true; fpCueInputFailReason=e.what();