mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Fix some of the documentation
CURA-6005
This commit is contained in:
parent
63c2a901bb
commit
23315260ae
1 changed files with 2 additions and 6 deletions
|
@ -18,11 +18,8 @@ from .DriveApiService import DriveApiService
|
||||||
from UM.i18n import i18nCatalog
|
from UM.i18n import i18nCatalog
|
||||||
catalog = i18nCatalog("cura")
|
catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
|
# The DivePluginExtension provides functionality to backup and restore your Cura configuration to Ultimaker's cloud.
|
||||||
class DrivePluginExtension(QObject, Extension):
|
class DrivePluginExtension(QObject, Extension):
|
||||||
"""
|
|
||||||
The DivePluginExtension provides functionality to backup and restore your Cura configuration to Ultimaker's cloud.
|
|
||||||
"""
|
|
||||||
|
|
||||||
# Signal emitted when the list of backups changed.
|
# Signal emitted when the list of backups changed.
|
||||||
backupsChanged = pyqtSignal()
|
backupsChanged = pyqtSignal()
|
||||||
|
@ -38,7 +35,7 @@ class DrivePluginExtension(QObject, Extension):
|
||||||
|
|
||||||
DATE_FORMAT = "%d/%m/%Y %H:%M:%S"
|
DATE_FORMAT = "%d/%m/%Y %H:%M:%S"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self) -> None:
|
||||||
QObject.__init__(self, None)
|
QObject.__init__(self, None)
|
||||||
Extension.__init__(self)
|
Extension.__init__(self)
|
||||||
|
|
||||||
|
@ -69,7 +66,6 @@ class DrivePluginExtension(QObject, Extension):
|
||||||
CuraApplication.getInstance().engineCreatedSignal.connect(self._autoBackup)
|
CuraApplication.getInstance().engineCreatedSignal.connect(self._autoBackup)
|
||||||
|
|
||||||
def showDriveWindow(self) -> None:
|
def showDriveWindow(self) -> None:
|
||||||
"""Show the Drive UI popup window."""
|
|
||||||
if not self._drive_window:
|
if not self._drive_window:
|
||||||
path = os.path.join(os.path.dirname(__file__), "qml", "main.qml")
|
path = os.path.join(os.path.dirname(__file__), "qml", "main.qml")
|
||||||
self._drive_window = CuraApplication.getInstance().createQmlComponent(path, {"CuraDrive": self})
|
self._drive_window = CuraApplication.getInstance().createQmlComponent(path, {"CuraDrive": self})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue