aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortassaron2022-04-29 00:22:26 -0400
committertassaron2022-04-29 00:22:26 -0400
commitb4fc89cfbeacb9dc99eba01b0dbfb0023709fe40 (patch)
treea88071e8f3690d2d3e38b6ea0951bc51bf543630 /src
parenta4dff0b3e0aa817822c1a490a423192a8cbf97eb (diff)
document keyboard shortcuts. fix "show ffmpeg command"
Diffstat (limited to 'src')
-rw-r--r--src/gui/mainwindow.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/mainwindow.py b/src/gui/mainwindow.py
index da8370d..f60befd 100644
--- a/src/gui/mainwindow.py
+++ b/src/gui/mainwindow.py
@@ -758,15 +758,17 @@ class MainWindow(QtWidgets.QMainWindow):
def showFfmpegCommand(self):
from textwrap import wrap
- from toolkit.ffmpeg import createFfmpegCommand
+ from ..toolkit.ffmpeg import createFfmpegCommand
command = createFfmpegCommand(
self.window.lineEdit_audioFile.text(),
self.window.lineEdit_outputFile.text(),
self.core.selectedComponents
)
- lines = wrap(" ".join(command), 49)
+ command = " ".join(command)
+ log.info(f"FFmpeg command: {command}")
+ lines = wrap(command, 49)
self.showMessage(
- msg="Current FFmpeg command:\n\n %s" % " ".join(lines)
+ msg=f"Current FFmpeg command:\n\n{' '.join(lines)}"
)
def addComponent(self, compPos, moduleIndex):