@@ -226,8 +226,7 @@ def onUploadDone(self):
226226 Logger .log ("d" , self ._name_id + " | Simulating..." )
227227 if self ._message :
228228 self ._message .hide ()
229- text = catalog .i18nc ("@info:progress" , "Simulating print on {}" ).format (self ._name )
230- self ._message = Message (text , 0 , False , - 1 )
229+ self ._message = Message (catalog .i18nc ("@info:progress" , "Simulating print on {}" ).format (self ._name ), 0 , False , - 1 )
231230 self ._message .show ()
232231
233232 self ._send ('gcode' , [("gcode" , "M37 S1" )], self .onReadyToPrint )
@@ -238,7 +237,7 @@ def onUploadDone(self):
238237 if self ._message :
239238 self ._message .hide ()
240239 text = "Uploaded file {} to {}." .format (os .path .basename (self ._fileName ), self ._name )
241- self ._message = Message (catalog .i18nc ("@info:status" , text ), 0 , False , - 1 )
240+ self ._message = Message (catalog .i18nc ("@info:status" , text ), 0 , False )
242241 self ._message .addAction ("open_browser" , catalog .i18nc ("@action:button" , "Open Browser" ), "globe" , catalog .i18nc ("@info:tooltip" , "Open browser to DuetWebControl." ))
243242 self ._message .actionTriggered .connect (self ._onMessageActionTriggered )
244243 self ._message .show ()
@@ -266,7 +265,7 @@ def onPrintStarted(self):
266265 if self ._message :
267266 self ._message .hide ()
268267 text = "Print started on {} with file {}" .format (self ._name , self ._fileName )
269- self ._message = Message (catalog .i18nc ("@info:status" , text ), 0 , False , - 1 )
268+ self ._message = Message (catalog .i18nc ("@info:status" , text ), 0 , False )
270269 self ._message .addAction ("open_browser" , catalog .i18nc ("@action:button" , "Open Browser" ), "globe" , catalog .i18nc ("@info:tooltip" , "Open browser to DuetWebControl." ))
271270 self ._message .actionTriggered .connect (self ._onMessageActionTriggered )
272271 self ._message .show ()
@@ -336,7 +335,7 @@ def onReported(self):
336335 self ._message .hide ()
337336
338337 text = "Simulation performed on {} with file {}:\n \n {}" .format (self ._name , self ._fileName , reply_body )
339- self ._message = Message (catalog .i18nc ("@info:status" , text ), 0 , False , - 1 )
338+ self ._message = Message (catalog .i18nc ("@info:status" , text ), 0 , False )
340339 self ._message .addAction ("open_browser" , catalog .i18nc ("@action:button" , "Open Browser" ), "globe" , catalog .i18nc ("@info:tooltip" , "Open browser to DuetWebControl." ))
341340 self ._message .actionTriggered .connect (self ._onMessageActionTriggered )
342341 self ._message .show ()
@@ -380,7 +379,7 @@ def _onNetworkError(self, errorCode):
380379 errorString = self ._reply .errorString ()
381380 else :
382381 errorString = ''
383- message = Message (catalog .i18nc ("@info:status" , "There was a network error: {} {}" ).format (errorCode , errorString ), 0 , False , - 1 )
382+ message = Message (catalog .i18nc ("@info:status" , "There was a network error: {} {}" ).format (errorCode , errorString ), 0 , False )
384383 message .show ()
385384
386385 self .writeError .emit (self )
0 commit comments