@@ -51,12 +51,10 @@ def __init__(
5151 services : list [str ] = [],
5252 support_gfx_driver : bool = False ,
5353 support_greeter : bool = False ,
54- advanced : bool = False ,
5554 ) -> None :
5655 self .name = name
5756 self .profile_type = profile_type
5857 self .custom_settings : dict [str , str | None ] = {}
59- self .advanced = advanced
6058
6159 self ._support_gfx_driver = support_gfx_driver
6260 self ._support_greeter = support_greeter
@@ -93,15 +91,6 @@ def default_greeter_type(self) -> GreeterType | None:
9391 """
9492 return None
9593
96- def _advanced_check (self ) -> bool :
97- """
98- Used to control if the Profile() should be visible or not in different contexts.
99- Returns True if --advanced is given on a Profile(advanced=True) instance.
100- """
101- from archinstall .lib .args import arch_config_handler
102-
103- return self .advanced is False or arch_config_handler .args .advanced is True
104-
10594 def install (self , install_session : Installer ) -> None :
10695 """
10796 Performs installation steps when this profile was selected
@@ -147,16 +136,16 @@ def is_top_level_profile(self) -> bool:
147136 return self .profile_type in top_levels
148137
149138 def is_desktop_profile (self ) -> bool :
150- return self .profile_type == ProfileType .Desktop if self . _advanced_check () else False
139+ return self .profile_type == ProfileType .Desktop
151140
152141 def is_server_type_profile (self ) -> bool :
153142 return self .profile_type == ProfileType .ServerType
154143
155144 def is_desktop_type_profile (self ) -> bool :
156- return ( self .profile_type == ProfileType .DesktopEnv or self .profile_type == ProfileType .WindowMgr ) if self . _advanced_check () else False
145+ return self .profile_type == ProfileType .DesktopEnv or self .profile_type == ProfileType .WindowMgr
157146
158147 def is_xorg_type_profile (self ) -> bool :
159- return self .profile_type == ProfileType .Xorg if self . _advanced_check () else False
148+ return self .profile_type == ProfileType .Xorg
160149
161150 def is_custom_type_profile (self ) -> bool :
162151 return self .profile_type == ProfileType .CustomType
0 commit comments