mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:28:59 +08:00
Remove deprecated PrinterOutputDevice.setAcceptsCommands
CURA-6858
This commit is contained in:
parent
227b76d6f0
commit
43ee68bdc7
@ -10,7 +10,6 @@ from UM.Logger import Logger
|
|||||||
from UM.Signal import signalemitter
|
from UM.Signal import signalemitter
|
||||||
from UM.Qt.QtApplication import QtApplication
|
from UM.Qt.QtApplication import QtApplication
|
||||||
from UM.FlameProfiler import pyqtSlot
|
from UM.FlameProfiler import pyqtSlot
|
||||||
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
|
||||||
|
|
||||||
@ -203,10 +202,6 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
|||||||
def acceptsCommands(self) -> bool:
|
def acceptsCommands(self) -> bool:
|
||||||
return self._accepts_commands
|
return self._accepts_commands
|
||||||
|
|
||||||
@deprecated("Please use the protected function instead", "3.2")
|
|
||||||
def setAcceptsCommands(self, accepts_commands: bool) -> None:
|
|
||||||
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: bool) -> None:
|
def _setAcceptsCommands(self, accepts_commands: bool) -> None:
|
||||||
if self._accepts_commands != accepts_commands:
|
if self._accepts_commands != accepts_commands:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user