mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 12:59:00 +08:00
Update set deamon logic
`setDaemon(True)` has been deprecated CURA-8640
This commit is contained in:
parent
3c9e2a1b08
commit
337e2aa4bb
@ -21,7 +21,7 @@ class RemovableDrivePlugin(OutputDevicePlugin):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
self._update_thread = threading.Thread(target = self._updateThread)
|
self._update_thread = threading.Thread(target = self._updateThread)
|
||||||
self._update_thread.setDaemon(True)
|
self._update_thread.deamon = True
|
||||||
|
|
||||||
self._check_updates = True
|
self._check_updates = True
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class USBPrinterOutputDeviceManager(QObject, OutputDevicePlugin):
|
|||||||
self._usb_output_devices = {}
|
self._usb_output_devices = {}
|
||||||
self._usb_output_devices_model = None
|
self._usb_output_devices_model = None
|
||||||
self._update_thread = threading.Thread(target = self._updateThread)
|
self._update_thread = threading.Thread(target = self._updateThread)
|
||||||
self._update_thread.setDaemon(True)
|
self._update_thread.daemon = True
|
||||||
|
|
||||||
self._check_updates = True
|
self._check_updates = True
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user