CHange _getBuiltinWelcomePagePath to be static

SHould have been static, so boyscouting it now

CURA-8696
This commit is contained in:
Jaime van Kessel 2021-12-01 10:33:05 +01:00
parent 22fcdf5c7b
commit 83b56726ba

View file

@ -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,