mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 11:09:07 +08:00
Don't repeat the plug-in name
If it changes, this will crash Cura.
This commit is contained in:
parent
aac82a0852
commit
d535008e08
@ -68,7 +68,7 @@ class DrivePluginExtension(QObject, Extension):
|
|||||||
|
|
||||||
def showDriveWindow(self) -> None:
|
def showDriveWindow(self) -> None:
|
||||||
if not self._drive_window:
|
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")
|
path = os.path.join(plugin_dir_path, "src", "qml", "main.qml")
|
||||||
self._drive_window = CuraApplication.getInstance().createQmlComponent(path, {"CuraDrive": self})
|
self._drive_window = CuraApplication.getInstance().createQmlComponent(path, {"CuraDrive": self})
|
||||||
self.refreshBackups()
|
self.refreshBackups()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user