mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Simplify return
This commit is contained in:
parent
aa6105f1be
commit
c0933ddb2d
2 changed files with 4 additions and 8 deletions
|
@ -118,13 +118,11 @@ class NetworkOutputDevice(UltimakerNetworkedPrinterOutputDevice):
|
|||
|
||||
# Show an error message if we're already sending a job.
|
||||
if self._progress.visible:
|
||||
message = Message(
|
||||
return Message(
|
||||
text=I18N_CATALOG.i18nc("@info:status", "Please wait until the current job has been sent."),
|
||||
title=I18N_CATALOG.i18nc("@info:title", "Print error"),
|
||||
lifetime=10
|
||||
)
|
||||
message.show()
|
||||
return
|
||||
).show()
|
||||
|
||||
self.writeStarted.emit(self)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue