mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-02 00:34:26 +08:00
Added (short) description & priority to legacy output device.
CL-541
This commit is contained in:
parent
1c2c4d4163
commit
4597bb09ed
@ -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…
x
Reference in New Issue
Block a user