Browse Source

CHange _getBuiltinWelcomePagePath to be static

SHould have been static, so boyscouting it now

CURA-8696
Jaime van Kessel 3 years ago
parent
commit
83b56726ba
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cura/UI/WelcomePagesModel.py

+ 2 - 1
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,