Skip to content

Commit 4c01c6c

Browse files
committed
Replacing literal value with a more accurate one (Codacy), and removing unused imports
1 parent dc0afa8 commit 4c01c6c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/timeline/js/controllers.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ App.controller("TimelineCtrl", function ($scope) {
270270
}
271271

272272
// Compare to previous scale (and ignore tiny differences)
273-
if (Math.abs(parseFloat(scaleVal) - $scope.project.scale) < 0.00001) {
273+
if (Math.abs(parseFloat(scaleVal) - $scope.project.scale) < 1.0e-5) {
274274
// Do not change scale if the value is this tiny
275275
// This can cause the Ruler $watch to fail, and will leave the Ruler blank
276276
return;

src/windows/main_window.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
import os
3131
import shutil
32-
import sys
3332
import webbrowser
3433
from copy import deepcopy
3534
from time import sleep
@@ -46,12 +45,11 @@
4645
QMessageBox, QDialog, QFileDialog, QInputDialog,
4746
QAction, QActionGroup, QSizePolicy,
4847
QStatusBar, QToolBar, QToolButton,
49-
QLineEdit, QSlider, QLabel, QComboBox, QTextEdit
48+
QLineEdit, QComboBox, QTextEdit
5049
)
5150

5251
from classes import exceptions, info, settings, qt_types, ui_util, updates
5352
from classes.app import get_app
54-
from classes.conversion import zoomToSeconds, secondsToZoom
5553
from classes.exporters.edl import export_edl
5654
from classes.exporters.final_cut_pro import export_xml
5755
from classes.importers.edl import import_edl

src/windows/views/zoom_slider.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from PyQt5.QtGui import (
3232
QPainter, QPixmap, QColor, QPen, QBrush, QCursor, QPainterPath
3333
)
34-
from PyQt5.QtWidgets import QSizePolicy, QWidget, QPushButton
34+
from PyQt5.QtWidgets import QSizePolicy, QWidget
3535

3636
import openshot # Python module for libopenshot (required video editing module installed separately)
3737

0 commit comments

Comments
 (0)