Added (short) description & priority to legacy output device.

CL-541
This commit is contained in:
Jaime van Kessel 2017-11-23 17:08:22 +01:00
parent 1c2c4d4163
commit 4597bb09ed

View File

@ -67,6 +67,13 @@ class LegacyUM3OutputDevice(NetworkedPrinterOutputDevice):
self.authenticationStateChanged.connect(self._onAuthenticationStateChanged) self.authenticationStateChanged.connect(self._onAuthenticationStateChanged)
self.setPriority(3) # Make sure the output device gets selected above local file output
self.setName(self._id)
self.setShortDescription(i18n_catalog.i18nc("@action:button Preceded by 'Ready to'.", "Print over network"))
self.setDescription(i18n_catalog.i18nc("@properties:tooltip", "Print over network"))
self.setIconName("print")
def _onAuthenticationStateChanged(self): def _onAuthenticationStateChanged(self):
# We only accept commands if we are authenticated. # We only accept commands if we are authenticated.
if self._authentication_state == AuthState.Authenticated: if self._authentication_state == AuthState.Authenticated: