* VRFS-2605 - prevent close of jamtrack or backing track while recordig
This commit is contained in:
parent
1ce41c5a54
commit
3181a67bda
|
|
@ -2889,6 +2889,12 @@
|
|||
}
|
||||
|
||||
function closeBackingTrack() {
|
||||
|
||||
if (sessionModel.recordingModel.isRecording()) {
|
||||
logger.debug("can't close backing track while recording")
|
||||
return false;
|
||||
}
|
||||
|
||||
rest.closeBackingTrack({id: sessionModel.id()})
|
||||
.done(function() {
|
||||
//sessionModel.refreshCurrentSession(true);
|
||||
|
|
@ -2909,9 +2915,13 @@
|
|||
}
|
||||
|
||||
function closeJamTrack() {
|
||||
|
||||
logger.debug("closing recording");
|
||||
|
||||
if (sessionModel.recordingModel.isRecording()) {
|
||||
logger.debug("can't close jamtrack while recording")
|
||||
return false;
|
||||
}
|
||||
|
||||
if(downloadJamTrack) {
|
||||
logger.debug("closing DownloadJamTrack widget")
|
||||
downloadJamTrack.root.remove();
|
||||
|
|
|
|||
Loading…
Reference in New Issue