stop audio sample on visibleChanged

This commit is contained in:
Zach Pomerantz 2017-06-20 12:11:12 -07:00
parent 5c0e9e7496
commit ab6c8505b8

View file

@ -39,6 +39,7 @@ RowLayout {
Component.onCompleted: createSampleSound();
Component.onDestruction: stopSound();
onVisibleChanged: { if (!visible) stopSound(); }
HifiConstants { id: hifi; }