diff options
author | Jaime van Kessel <nallath@gmail.com> | 2021-12-01 12:30:52 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2021-12-01 12:30:52 +0300 |
commit | 22fcdf5c7b179fe94c1b2199f8c248f4dcba1ad0 (patch) | |
tree | 69bcb04c2ebe6d29df04eb460afc33e683c1a9fd /cura/UI | |
parent | 051c3ee2e290f65803b49e8a49b0212998c36b95 (diff) |
Change whatsnew to whats_new
They are seperate words, so should have an _ in between
CURA-8696
Diffstat (limited to 'cura/UI')
-rw-r--r-- | cura/UI/WelcomePagesModel.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cura/UI/WelcomePagesModel.py b/cura/UI/WelcomePagesModel.py index ec0958d07e..41e45bacd9 100644 --- a/cura/UI/WelcomePagesModel.py +++ b/cura/UI/WelcomePagesModel.py @@ -229,14 +229,14 @@ class WelcomePagesModel(ListModel): self._initialize() def _initialize(self, update_should_show_flag: bool = True) -> None: - show_whatsnew_only = False + show_whats_new_only = False if update_should_show_flag: has_active_machine = self._application.getMachineManager().activeMachine is not None has_app_just_upgraded = self._application.hasJustUpdatedFromOldVersion() # Only show the what's new dialog if there's no machine and we have just upgraded show_complete_flow = not has_active_machine - show_whatsnew_only = has_active_machine and has_app_just_upgraded + show_whats_new_only = has_active_machine and has_app_just_upgraded # FIXME: This is a hack. Because of the circular dependency between MachineManager, ExtruderManager, and # possibly some others, setting the initial active machine is not done when the MachineManager gets @@ -244,7 +244,7 @@ class WelcomePagesModel(ListModel): # the active machine files are corrupted so we cannot rely on Preferences either. This makes sure that once # the active machine gets changed, this model updates the flags, so it can decide whether to show the # welcome flow or not. - should_show_welcome_flow = show_complete_flow or show_whatsnew_only + should_show_welcome_flow = show_complete_flow or show_whats_new_only if should_show_welcome_flow != self._should_show_welcome_flow: self._should_show_welcome_flow = should_show_welcome_flow self.shouldShowWelcomeFlowChanged.emit() @@ -291,7 +291,7 @@ class WelcomePagesModel(ListModel): ] pages_to_show = all_pages_list - if show_whatsnew_only: + if show_whats_new_only: pages_to_show = list(filter(lambda x: x["id"] == "whats_new", all_pages_list)) self._pages = pages_to_show |