mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 17:48:59 +08: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
@ -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…
x
Reference in New Issue
Block a user