feat(gioui): add confirmation dialog when deleting instrument

Closes #5
This commit is contained in:
vsariola
2021-04-11 16:46:07 +03:00
parent a639e0c5e6
commit 1eca428801
5 changed files with 72 additions and 0 deletions

View File

@ -61,6 +61,7 @@ type Tracker struct {
Alert Alert
PatternOrderList *layout.List
PatternOrderScrollBar *ScrollBar
ConfirmInstrDelete *Dialog
lastVolume tracker.Volume
volumeChan chan tracker.Volume
@ -150,6 +151,7 @@ func New(audioContext sointu.AudioContext, synthService sointu.SynthService, syn
playerCloser: make(chan struct{}),
PatternOrderList: &layout.List{Axis: layout.Vertical},
PatternOrderScrollBar: &ScrollBar{Axis: layout.Vertical},
ConfirmInstrDelete: new(Dialog),
}
t.Model = tracker.NewModel()
vuBufferObserver := make(chan []float32)