loading channels progress bar
@@ -4122,9 +4122,14 @@ class View(QtWidgets.QLabel):
fit_in_view = len(self.locs) == 0
paths = sorted(paths)
- for path in paths:
+ pd = lib.ProgressDialog(
+ "Loading channels", 0, len(paths), self
+ )
+ pd.set_value(0)
+ for i, path in enumerate(paths):
self.add(path, render=False)
- if len(self.locs): # in case loading was not succesful
+ pd.set_value(i+1)
+ if len(self.locs): # if loading was successful
if fit_in_view:
self.fit_in_view(autoscale=True)
else:
@@ -6759,10 +6764,6 @@ class View(QtWidgets.QLabel):
self.locs[channel] = self.all_locs[channel]
self.update_scene()
- # todo: get channel for removing all channels at once
- # todo: test multichannel
- # todo: doesnt work after pick similar
-
def remove_points(self):
""" Removes all distance measurement points. """
