mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 00:36:03 +08:00
OSX would get stuck and act like there was a modal dialog open if we do the callback processing immediately. Delay it slightly.
CURA-2801 CLONE - Cura in freeze mode when printing via WiFi
This commit is contained in:
parent
4900a8f380
commit
b41b98f058
@ -574,10 +574,14 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||
self.startPrint()
|
||||
|
||||
def _configurationMismatchMessageCallback(self, button):
|
||||
if button == QMessageBox.Yes:
|
||||
self.startPrint()
|
||||
else:
|
||||
Application.getInstance().showPrintMonitor.emit(False)
|
||||
def delayedCallback():
|
||||
if button == QMessageBox.Yes:
|
||||
self.startPrint()
|
||||
else:
|
||||
Application.getInstance().showPrintMonitor.emit(False)
|
||||
# For some unknown reason Cura on OSX will hang if we do the call back code
|
||||
# immediately without first returning and leaving QML's event system.
|
||||
QTimer.singleShot(100, delayedCallback)
|
||||
|
||||
def isConnected(self):
|
||||
return self._connection_state != ConnectionState.closed and self._connection_state != ConnectionState.error
|
||||
|
Loading…
x
Reference in New Issue
Block a user