Skip to content

Commit

Permalink
Angular: reduce some (almos all) logs to qt_debug()
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Jul 5, 2018
1 parent 2489c8c commit 6733eeb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/timeline/js/controllers.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ App.controller('TimelineCtrl',function($scope) {
$scope.Qt = false;
$scope.EnableQt = function() {
$scope.Qt = true;
timeline.qt_log("$scope.Qt = true;");
timeline.qt_debug("$scope.Qt = true;");
};

// Move the playhead to a specific time
Expand Down Expand Up @@ -431,7 +431,7 @@ App.controller('TimelineCtrl',function($scope) {
$scope.project.clips[clip_index].audio_data = audio_data;
$scope.project.clips[clip_index].show_audio = true;
});
timeline.qt_log("Audio data successful set on clip JSON");
timeline.qt_debug("Audio data successful set on clip JSON");
break;
}

Expand Down Expand Up @@ -724,7 +724,7 @@ App.controller('TimelineCtrl',function($scope) {
// Show clip context menu
$scope.ShowClipMenu = function(clip_id, event) {
if ($scope.Qt) {
timeline.qt_log("$scope.ShowClipMenu");
timeline.qt_debug("$scope.ShowClipMenu");
$scope.SelectClip(clip_id, false, event);
timeline.ShowClipMenu(clip_id);
}
Expand All @@ -733,15 +733,15 @@ App.controller('TimelineCtrl',function($scope) {
// Show clip context menu
$scope.ShowEffectMenu = function(effect_id) {
if ($scope.Qt) {
timeline.qt_log("$scope.ShowEffectMenu");
timeline.qt_debug("$scope.ShowEffectMenu");
timeline.ShowEffectMenu(effect_id);
}
};

// Show transition context menu
$scope.ShowTransitionMenu = function(tran_id, event) {
if ($scope.Qt) {
timeline.qt_log("$scope.ShowTransitionMenu");
timeline.qt_debug("$scope.ShowTransitionMenu");
$scope.SelectTransition(tran_id, false, event);
timeline.ShowTransitionMenu(tran_id);
}
Expand All @@ -750,23 +750,23 @@ App.controller('TimelineCtrl',function($scope) {
// Show track context menu
$scope.ShowTrackMenu = function(layer_id) {
if ($scope.Qt) {
timeline.qt_log("$scope.ShowTrackMenu");
timeline.qt_debug("$scope.ShowTrackMenu");
timeline.ShowTrackMenu(layer_id);
}
};

// Show marker context menu
$scope.ShowMarkerMenu = function(marker_id) {
if ($scope.Qt) {
timeline.qt_log("$scope.ShowMarkerMenu");
timeline.qt_debug("$scope.ShowMarkerMenu");
timeline.ShowMarkerMenu(marker_id);
}
};

// Show playhead context menu
$scope.ShowPlayheadMenu = function(position) {
if ($scope.Qt) {
timeline.qt_log("$scope.ShowPlayheadMenu");
timeline.qt_debug("$scope.ShowPlayheadMenu");
timeline.ShowPlayheadMenu(position);
}
};
Expand Down

0 comments on commit 6733eeb

Please sign in to comment.