|
|
|
@ -1583,8 +1583,16 @@ class VariableClBuilderGrubRefreshSet(ReadonlyVariable):
|
|
|
|
|
action = self.Get('cl_action')
|
|
|
|
|
if action == Actions.Image:
|
|
|
|
|
if root_type_ext in RootType.HDDs:
|
|
|
|
|
if self.Get('cl_livepath_menu'):
|
|
|
|
|
return "on"
|
|
|
|
|
rep_dir = self.Get('cl_livemenu_path')
|
|
|
|
|
if rep_dir:
|
|
|
|
|
isoimage = self.Get('cl_builder_image_filename')
|
|
|
|
|
isoimage_dir = path.dirname(isoimage)
|
|
|
|
|
if isoimage_dir == rep_dir:
|
|
|
|
|
return "on"
|
|
|
|
|
elif root_type_ext in RootType.IsoScanGrub:
|
|
|
|
|
return "on"
|
|
|
|
|
isoimage = self.Get('cl_builder_image_filename')
|
|
|
|
|
rep_dir = self.Get('cl_builder_livemenu_path')
|
|
|
|
|
isoimage_dir = path.dirname(isoimage)
|
|
|
|
|
if isoimage_dir == rep_dir:
|
|
|
|
|
return "on"
|
|
|
|
|
return "off"
|
|
|
|
|