Skip to content

Commit

Permalink
fix _layout initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor-IX committed Jan 16, 2025
1 parent f89e280 commit fbd54fb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions source/widgets/onboarding_setup/wizard_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,12 @@ def __init__(self, v: Version, prop_settings: PropogatedSettings, parent=None):
def evaluate(self): ...


PERM_WARNING_LABEL_WINDOWS = "Warning: Do not use C:/Program Files/... as your library location or anywhere else you may not have permissions"
PERM_WARNING_LABEL_LINUX = "Warning: Do not use /bin as your library location or anywhere else you may not have permissions"

PERM_WARNING_LABEL_WINDOWS = (
"Warning: Do not use C:/Program Files/... as your library location or anywhere else you may not have permissions"
)
PERM_WARNING_LABEL_LINUX = (
"Warning: Do not use /bin as your library location or anywhere else you may not have permissions"
)


class ChooseLibraryPage(BasicOnboardingPage):
Expand Down Expand Up @@ -116,8 +119,6 @@ def __init__(self, prop_settings: PropogatedSettings, parent: BlenderLauncher):

self.warning_label.setWordWrap(True)

if get_platform() == "Windows":
self.layout_.addWidget(self.warning_label)
self.layout_ = QVBoxLayout(self)
self.layout_.addWidget(self.warning_label)
self.layout_.addWidget(QLabel("Library location:", self))
Expand Down

0 comments on commit fbd54fb

Please sign in to comment.