mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
Added (short) description & priority to legacy output device.
CL-541
This commit is contained in:
parent
1c2c4d4163
commit
4597bb09ed
1 changed files with 7 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue