mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 06:03:57 -06:00
Add back the setAcceptsCommands function with a deprecated decorator.
This commit is contained in:
parent
fca14eeef3
commit
3b499edac5
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
# Copyright (c) 2018 Ultimaker B.V.
|
# Copyright (c) 2018 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
from UM.Decorators import deprecated
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
from UM.OutputDevice.OutputDevice import OutputDevice
|
from UM.OutputDevice.OutputDevice import OutputDevice
|
||||||
from PyQt5.QtCore import pyqtProperty, QObject, QTimer, pyqtSignal, QVariant
|
from PyQt5.QtCore import pyqtProperty, QObject, QTimer, pyqtSignal, QVariant
|
||||||
|
@ -174,6 +174,10 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
||||||
def acceptsCommands(self):
|
def acceptsCommands(self):
|
||||||
return self._accepts_commands
|
return self._accepts_commands
|
||||||
|
|
||||||
|
@deprecated("Please use the protected function instead", "3.2")
|
||||||
|
def setAcceptsCommands(self, accepts_commands):
|
||||||
|
self._setAcceptsCommands(accepts_commands)
|
||||||
|
|
||||||
## Set a flag to signal the UI that the printer is not (yet) ready to receive commands
|
## Set a flag to signal the UI that the printer is not (yet) ready to receive commands
|
||||||
def _setAcceptsCommands(self, accepts_commands):
|
def _setAcceptsCommands(self, accepts_commands):
|
||||||
if self._accepts_commands != accepts_commands:
|
if self._accepts_commands != accepts_commands:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue