Fix issue where plugin actions would end up in toolbar twice
Remove unnecessary console logs
This commit is contained in:
parent
c847a8328f
commit
19aaacd48f
@ -749,7 +749,7 @@ BARS.defineActions(function() {
|
||||
flip_action = new Action('flip_animation', {
|
||||
icon: 'transfer_within_a_station',
|
||||
category: 'animation',
|
||||
condition: {modes: ['animate']},
|
||||
condition: {modes: ['animate'], method: () => Animation.selected},
|
||||
click() {
|
||||
|
||||
if (!Animation.selected) {
|
||||
|
@ -374,7 +374,6 @@ const Timeline = {
|
||||
|
||||
let offset = $('#timeline_body_inner').offset()
|
||||
let offsetX = event.clientX - offset.left - Timeline.vue._data.head_width;
|
||||
console.log(offsetX)
|
||||
|
||||
var zoom = 1 - event.deltaY/600
|
||||
let original_size = Timeline.vue._data.size
|
||||
|
@ -1192,8 +1192,10 @@ class Toolbar {
|
||||
// while there isn't displayed element at insertAfter - 1, decrease to reach one or 0
|
||||
while (this.positionLookup[--insertAfter] === undefined && insertAfter >= 0) {}
|
||||
var itemIdx = insertAfter + 1;
|
||||
if (!this.children.includes(item)) {
|
||||
item.pushToolbar(this, itemIdx);
|
||||
this.positionLookup[itemIdx] = item;
|
||||
}
|
||||
this.postload.splice(idx, 1);
|
||||
} else {
|
||||
idx++;
|
||||
|
@ -97,7 +97,6 @@ function setupMobilePanelSelector() {
|
||||
}
|
||||
},
|
||||
openKeyboardMenu(event) {
|
||||
console.log(event)
|
||||
let menu = new Menu([
|
||||
{icon: Pressing.overrides.ctrl ? 'check_box' : 'check_box_outline_blank', name: 'keys.ctrl', click() {Pressing.overrides.ctrl = !Pressing.overrides.ctrl}},
|
||||
{icon: Pressing.overrides.shift ? 'check_box' : 'check_box_outline_blank', name: 'keys.shift', click() {Pressing.overrides.shift = !Pressing.overrides.shift}},
|
||||
|
Loading…
x
Reference in New Issue
Block a user