mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 18:27:51 -06:00
CL-228 when adding a Cura Connect printer, do not ask authentication, it is always authenticated
This commit is contained in:
parent
9ac3f8654e
commit
5a3e427450
3 changed files with 17 additions and 2 deletions
|
@ -389,4 +389,4 @@ Cura.MachineAction
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,7 @@ class NetworkClusterPrinterOutputDevice(NetworkPrinterOutputDevice.NetworkPrinte
|
||||||
else:
|
else:
|
||||||
name = key
|
name = key
|
||||||
|
|
||||||
|
self._authentication_state = NetworkPrinterOutputDevice.AuthState.Authenticated # The printer is always authenticated
|
||||||
self._plugin_path = plugin_path
|
self._plugin_path = plugin_path
|
||||||
|
|
||||||
self.setName(name)
|
self.setName(name)
|
||||||
|
@ -110,6 +111,20 @@ class NetworkClusterPrinterOutputDevice(NetworkPrinterOutputDevice.NetworkPrinte
|
||||||
temporary_translation3 = i18n_catalog.i18n("{printer_name} has finished printing '{job_name}'. Please collect the print and confirm clearing the build plate.") #When finished.
|
temporary_translation3 = i18n_catalog.i18n("{printer_name} has finished printing '{job_name}'. Please collect the print and confirm clearing the build plate.") #When finished.
|
||||||
temporary_translation4 = i18n_catalog.i18n("{printer_name} is reserved to print '{job_name}'. Please change the printer's configuration to match the job, for it to start printing.") #When configuration changed.
|
temporary_translation4 = i18n_catalog.i18n("{printer_name} is reserved to print '{job_name}'. Please change the printer's configuration to match the job, for it to start printing.") #When configuration changed.
|
||||||
|
|
||||||
|
## No authentication, so requestAuthentication should do exactly nothing
|
||||||
|
@pyqtSlot()
|
||||||
|
def requestAuthentication(self, message_id = None, action_id = "Retry"):
|
||||||
|
Logger.log("d", "requestAuthentication for Cura Connect - nothing to be done")
|
||||||
|
|
||||||
|
def setAuthenticationState(self, auth_state):
|
||||||
|
self._authentication_state = NetworkPrinterOutputDevice.AuthState.Authenticated # The printer is always authenticated
|
||||||
|
|
||||||
|
def _verifyAuthentication(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
def _checkAuthentication(self):
|
||||||
|
Logger.log("d", "_checkAuthentication Cura Connect - nothing to be done")
|
||||||
|
|
||||||
@pyqtProperty(QObject, notify=selectedPrinterChanged)
|
@pyqtProperty(QObject, notify=selectedPrinterChanged)
|
||||||
def controlItem(self):
|
def controlItem(self):
|
||||||
# TODO: Probably not the nicest way to do this. This needs to be done better at some point in time.
|
# TODO: Probably not the nicest way to do this. This needs to be done better at some point in time.
|
||||||
|
|
|
@ -121,4 +121,4 @@ Item
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.I18nCatalog{id: catalog; name:"cura"}
|
UM.I18nCatalog{id: catalog; name:"cura"}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue