mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Don't repeat the plug-in name
If it changes, this will crash Cura.
This commit is contained in:
parent
aac82a0852
commit
d535008e08
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ class DrivePluginExtension(QObject, Extension):
|
|||
|
||||
def showDriveWindow(self) -> None:
|
||||
if not self._drive_window:
|
||||
plugin_dir_path = CuraApplication.getInstance().getPluginRegistry().getPluginPath("CuraDrive")
|
||||
plugin_dir_path = CuraApplication.getInstance().getPluginRegistry().getPluginPath(self.getPluginId())
|
||||
path = os.path.join(plugin_dir_path, "src", "qml", "main.qml")
|
||||
self._drive_window = CuraApplication.getInstance().createQmlComponent(path, {"CuraDrive": self})
|
||||
self.refreshBackups()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue