GUI: focus sample editor when clicking on waveform

This commit is contained in:
tildearrow 2022-04-12 02:46:51 -05:00
parent ea463e4dfd
commit 3b0be2c42a
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,6 @@
#include "util.h"
// TODO:
// - clicking on waveform should give this window focus
// - add "create instrument using this sample" option
// - .dmc loading
void FurnaceGUI::drawSampleEdit() {
@ -1192,6 +1191,7 @@ void FurnaceGUI::drawSampleEdit() {
ImVec2 rectSize=ImGui::GetItemRectSize();
if (ImGui::IsItemClicked()) {
nextWindow=GUI_WINDOW_SAMPLE_EDIT;
if (ImGui::IsMouseDoubleClicked(ImGuiMouseButton_Left)) {
sampleDragActive=false;
sampleSelStart=0;