mirror of
https://github.com/fergalmoran/picard.git
synced 2026-04-05 03:55:14 +00:00
Disable panel sorting during clustering
This commit is contained in:
@@ -842,12 +842,15 @@ class Tagger(QtWidgets.QApplication):
|
||||
files = list(self.unclustered_files.files)
|
||||
else:
|
||||
files = self.get_files_from_objects(objs)
|
||||
|
||||
self.window.panel.set_sorting(False)
|
||||
for name, artist, files in Cluster.cluster(files, 1.0):
|
||||
QtCore.QCoreApplication.processEvents()
|
||||
cluster = self.load_cluster(name, artist)
|
||||
for file in sorted(files, key=attrgetter('discnumber', 'tracknumber', 'base_filename')):
|
||||
file.move(cluster)
|
||||
QtCore.QCoreApplication.processEvents()
|
||||
self.window.panel.set_sorting(True)
|
||||
|
||||
def load_cluster(self, name, artist):
|
||||
for cluster in self.clusters:
|
||||
|
||||
Reference in New Issue
Block a user