File tree Expand file tree Collapse file tree
activity_browser/bwutils/metadata Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ class MDSLoader(QtCore.QObject):
2626
2727 def __init__ (self , mds : MetaDataStore ):
2828 super ().__init__ (mds )
29- self .moveToThread (application .thread ())
3029
3130 self .mds = mds
3231 self .connect_signals ()
@@ -44,6 +43,7 @@ def load_project(self):
4443
4544 # start loading threads
4645 thread = SecondaryLoadThread (self )
46+ thread .setObjectName ("SecondaryLoadThread-MDSLoader" )
4747 thread .done .connect (self .secondary_load_project )
4848 thread .start (databases = list (bd .databases ), sqlite_db = str (sqlite3_lci_db ._filepath ))
4949
Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ def __init__(self, parent=None):
2828 self ._updated : set [tuple [str , str ]] = set ()
2929 self ._deleted : set [tuple [str , str ]] = set ()
3030
31- self .moveToThread (application .thread ())
32-
3331 self .loader = MDSLoader (self )
3432 self .updater = MDSUpdater (self )
3533 self .flusher : QTimer | None = None
34+
35+ self .moveToThread (application .thread ())
3636
3737 @property
3838 def dataframe (self ) -> pd .DataFrame :
Original file line number Diff line number Diff line change 1717class MDSUpdater (QtCore .QObject ):
1818 def __init__ (self , mds : MetaDataStore ):
1919 super ().__init__ (mds )
20- self .moveToThread (application .thread ())
2120
2221 self .mds = mds
2322 self .connect_signals ()
You can’t perform that action at this time.
0 commit comments