mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 17:57:55 -06:00
CHange _getBuiltinWelcomePagePath to be static
SHould have been static, so boyscouting it now CURA-8696
This commit is contained in:
parent
22fcdf5c7b
commit
83b56726ba
1 changed files with 2 additions and 1 deletions
|
@ -213,7 +213,8 @@ class WelcomePagesModel(ListModel):
|
||||||
break
|
break
|
||||||
return page_idx
|
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"."""
|
"""Convenience function to get QUrl path to pages that's located in "resources/qml/WelcomePages"."""
|
||||||
from cura.CuraApplication import CuraApplication
|
from cura.CuraApplication import CuraApplication
|
||||||
return QUrl.fromLocalFile(Resources.getPath(CuraApplication.ResourceTypes.QmlFiles,
|
return QUrl.fromLocalFile(Resources.getPath(CuraApplication.ResourceTypes.QmlFiles,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue