Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cura/UI
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2021-12-01 12:33:05 +0300
committerJaime van Kessel <nallath@gmail.com>2021-12-01 12:33:05 +0300
commit83b56726ba8cbc606d08ed4457ab9682e3fa84a1 (patch)
treef49f883a8d63a17d1fe7b8afd68edbc00f8e6e4c /cura/UI
parent22fcdf5c7b179fe94c1b2199f8c248f4dcba1ad0 (diff)
CHange _getBuiltinWelcomePagePath to be static
SHould have been static, so boyscouting it now CURA-8696
Diffstat (limited to 'cura/UI')
-rw-r--r--cura/UI/WelcomePagesModel.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/UI/WelcomePagesModel.py b/cura/UI/WelcomePagesModel.py
index 41e45bacd9..890e34a31e 100644
--- a/cura/UI/WelcomePagesModel.py
+++ b/cura/UI/WelcomePagesModel.py
@@ -213,7 +213,8 @@ class WelcomePagesModel(ListModel):
break
return page_idx
- def _getBuiltinWelcomePagePath(self, page_filename: str) -> "QUrl":
+ @staticmethod
+ def _getBuiltinWelcomePagePath(page_filename: str) -> QUrl:
"""Convenience function to get QUrl path to pages that's located in "resources/qml/WelcomePages"."""
from cura.CuraApplication import CuraApplication
return QUrl.fromLocalFile(Resources.getPath(CuraApplication.ResourceTypes.QmlFiles,