mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Get plugin path like most other plugins do
Contributes to CL-1274
This commit is contained in:
parent
87d4a68c0e
commit
a74717ca3c
4 changed files with 12 additions and 12 deletions
|
@ -458,8 +458,8 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|||
text = i18n_catalog.i18nc("@info:status", "Send and monitor print jobs from anywhere using your Ultimaker account."),
|
||||
lifetime = 0,
|
||||
image_source = QUrl.fromLocalFile(os.path.join(
|
||||
PluginRegistry.getPluginDirectory(),
|
||||
"UM3NetworkPrinting", "resources", "svg", "cloud-flow-start.svg"
|
||||
PluginRegistry.getInstance().getPluginPath("UM3NetworkPrinting"),
|
||||
"resources", "svg", "cloud-flow-start.svg"
|
||||
)),
|
||||
image_caption = i18n_catalog.i18nc("@info:status", "Connect to Ultimaker Cloud"),
|
||||
option_text = i18n_catalog.i18nc("@action", "Don't ask me again for this printer."),
|
||||
|
@ -482,8 +482,8 @@ class UM3OutputDevicePlugin(OutputDevicePlugin):
|
|||
text = i18n_catalog.i18nc("@info:status", "You can now send and monitor print jobs from anywhere using your Ultimaker account."),
|
||||
lifetime = 30,
|
||||
image_source = QUrl.fromLocalFile(os.path.join(
|
||||
PluginRegistry.getPluginDirectory(),
|
||||
"UM3NetworkPrinting", "resources", "svg", "cloud-flow-completed.svg"
|
||||
PluginRegistry.getInstance().getPluginPath("UM3NetworkPrinting"),
|
||||
"resources", "svg", "cloud-flow-completed.svg"
|
||||
)),
|
||||
image_caption = i18n_catalog.i18nc("@info:status", "Connected!")
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue