Skip to content

Commit

Permalink
Move AudioWidget import to openAudio method to avoid unnecessary soun…
Browse files Browse the repository at this point in the history
…ddevice installation
  • Loading branch information
healthonrails committed Oct 14, 2024
1 parent eca789f commit 2e9331f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion annolid/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
from annolid.postprocessing.glitter import tracks2nix
from annolid.postprocessing.quality_control import TracksResults
from annolid.gui.widgets import ProgressingWindow
from annolid.gui.widgets.audio import AudioWidget
import webbrowser
import atexit
import qimage2ndarray
Expand Down Expand Up @@ -688,6 +687,7 @@ def about_annolid_and_system_info(self):
about_annolid_dialog.exec_()

def openAudio(self):
from annolid.gui.widgets.audio import AudioWidget
if self.video_file:
self.audio_widget = AudioWidget(self.video_file)
self.audio_dock = QtWidgets.QDockWidget(self.tr("Audio"), self)
Expand Down

0 comments on commit 2e9331f

Please sign in to comment.