Browse Source

Update set deamon logic

`setDaemon(True)` has been deprecated

CURA-8640
c.lamboo 2 years ago
parent
commit
337e2aa4bb

+ 1 - 1
plugins/RemovableDriveOutputDevice/RemovableDrivePlugin.py

@@ -21,7 +21,7 @@ class RemovableDrivePlugin(OutputDevicePlugin):
         super().__init__()
 
         self._update_thread = threading.Thread(target = self._updateThread)
-        self._update_thread.setDaemon(True)
+        self._update_thread.deamon = True
 
         self._check_updates = True
 

+ 1 - 1
plugins/USBPrinting/USBPrinterOutputDeviceManager.py

@@ -40,7 +40,7 @@ class USBPrinterOutputDeviceManager(QObject, OutputDevicePlugin):
         self._usb_output_devices = {}
         self._usb_output_devices_model = None
         self._update_thread = threading.Thread(target = self._updateThread)
-        self._update_thread.setDaemon(True)
+        self._update_thread.daemon = True
 
         self._check_updates = True