From 80526893c277ce66853e0dae871ea3b0261a0f96 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 14 Dec 2017 09:36:31 +0100 Subject: [PATCH] Made setAcceptsCommands protected CL-541 --- cura/PrinterOutputDevice.py | 2 +- plugins/UM3NetworkPrinting/LegacyUM3OutputDevice.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cura/PrinterOutputDevice.py b/cura/PrinterOutputDevice.py index fdf9a77145..f8408947ab 100644 --- a/cura/PrinterOutputDevice.py +++ b/cura/PrinterOutputDevice.py @@ -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 diff --git a/plugins/UM3NetworkPrinting/LegacyUM3OutputDevice.py b/plugins/UM3NetworkPrinting/LegacyUM3OutputDevice.py index 967c99995e..e8e340e333 100644 --- a/plugins/UM3NetworkPrinting/LegacyUM3OutputDevice.py +++ b/plugins/UM3NetworkPrinting/LegacyUM3OutputDevice.py @@ -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",