Close Session context before importing tracks
This commit is contained in:
parent
7163a4c6e4
commit
c0c90595fd
@ -480,10 +480,10 @@ class Window(QMainWindow, Ui_MainWindow):
|
|||||||
if result == QMessageBox.Cancel:
|
if result == QMessageBox.Cancel:
|
||||||
return
|
return
|
||||||
|
|
||||||
# Import in separate thread
|
# Import in separate thread
|
||||||
thread = threading.Thread(target=self._import_tracks,
|
thread = threading.Thread(target=self._import_tracks,
|
||||||
args=(new_tracks,))
|
args=(new_tracks,))
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
def _import_tracks(self, tracks: list):
|
def _import_tracks(self, tracks: list):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user