mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 10:47:49 -06:00
Made setAcceptsCommands protected
CL-541
This commit is contained in:
parent
005ba4ac53
commit
80526893c2
2 changed files with 3 additions and 3 deletions
|
@ -138,7 +138,7 @@ class PrinterOutputDevice(QObject, OutputDevice):
|
|||
return self._accepts_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:
|
||||
self._accepts_commands = accepts_commands
|
||||
|
||||
|
|
|
@ -79,9 +79,9 @@ class LegacyUM3OutputDevice(NetworkedPrinterOutputDevice):
|
|||
def _onAuthenticationStateChanged(self):
|
||||
# We only accept commands if we are authenticated.
|
||||
if self._authentication_state == AuthState.Authenticated:
|
||||
self.setAcceptsCommands(True)
|
||||
self._setAcceptsCommands(True)
|
||||
else:
|
||||
self.setAcceptsCommands(False)
|
||||
self._setAcceptsCommands(False)
|
||||
|
||||
def _setupMessages(self):
|
||||
self._authentication_requested_message = Message(i18n_catalog.i18nc("@info:status",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue