mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
GUI: focus sample editor when clicking on waveform
This commit is contained in:
parent
ea463e4dfd
commit
3b0be2c42a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue