mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Use getPluginPath()
CURA-6005
This commit is contained in:
parent
aee4034e3e
commit
520b34ab89
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ class DrivePluginExtension(QObject, Extension):
|
|||
|
||||
def showDriveWindow(self) -> None:
|
||||
if not self._drive_window:
|
||||
path = os.path.join(os.path.dirname(__file__), "qml", "main.qml")
|
||||
plugin_dir_path = CuraApplication.getInstance().getPluginRegistry().getPluginPath("CuraDrive")
|
||||
path = os.path.join(plugin_dir_path, "src", "qml", "main.qml")
|
||||
self._drive_window = CuraApplication.getInstance().createQmlComponent(path, {"CuraDrive": self})
|
||||
self.refreshBackups()
|
||||
if self._drive_window:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue