Skip to content

Commit

Permalink
Fixing Codacy nitpicks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonoomph committed May 20, 2024
1 parent 7d0fe24 commit 2514bd5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/themes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def set_dock_margins(self, content_margins=None, layout_margins=None, object_nam
# Set content margins on the QDock Layout (which has additional margins)
child.layout().setContentsMargins(*layout_margins)

def set_toolbar_buttons(self, toolbar, icon_size=24, settings=[]):
def set_toolbar_buttons(self, toolbar, icon_size=24, settings=None):
"""Iterate through toolbar button settings, and apply them to each button.
[{"text": "", "icon": ""},...]
"""
Expand Down Expand Up @@ -138,7 +138,7 @@ def apply_theme(self):
# Hide main window status bar
self.app.window.statusBar.hide()

from classes import info, ui_util
from classes import info
from classes.logger import log
from PyQt5.QtGui import QFont, QFontDatabase

Expand Down
2 changes: 1 addition & 1 deletion src/timeline/js/directives/clip.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ App.directive("tlClip", function ($timeout) {
var y_offset = ui.position.top - previous_y;

// Move the bounding box and apply snapping rules
var results = moveBoundingBox(scope, previous_x, previous_y, x_offset, y_offset, ui.position.left, ui.position.top, item_type="clip",cursor_offset=initialOffset);
var results = moveBoundingBox(scope, previous_x, previous_y, x_offset, y_offset, ui.position.left, ui.position.top, "clip", initialOffset);
x_offset = results.x_offset;
y_offset = results.y_offset;

Expand Down
2 changes: 1 addition & 1 deletion src/timeline/js/directives/transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ App.directive("tlTransition", function () {
var y_offset = ui.position.top - previous_y;

// Move the bounding box and apply snapping rules
var results = moveBoundingBox(scope, previous_x, previous_y, x_offset, y_offset, ui.position.left, ui.position.top, item_type="clip",cursor_offset=initialOffset);
var results = moveBoundingBox(scope, previous_x, previous_y, x_offset, y_offset, ui.position.left, ui.position.top, "clip", initialOffset);
x_offset = results.x_offset;
y_offset = results.y_offset;

Expand Down

0 comments on commit 2514bd5

Please sign in to comment.