Class: Bootloader::HiddenMenuWidget

Inherits:
CWM::CheckBox
  • Object
show all
Includes:
Grub2Widget
Defined in:
src/lib/bootloader/grub2_widgets.rb

Overview

Represents decision if menu should be hidden or visible

Instance Method Summary (collapse)

Methods included from Grub2Widget

#grub2, #grub_default, #password, #sections, #stage1

Constructor Details

- (HiddenMenuWidget) initialize

Returns a new instance of HiddenMenuWidget



145
146
147
# File 'src/lib/bootloader/grub2_widgets.rb', line 145

def initialize
  textdomain "bootloader"
end

Instance Method Details

- (Object) help



153
154
155
156
157
# File 'src/lib/bootloader/grub2_widgets.rb', line 153

def help
  _(
    "<p>Selecting <b>Hide Menu on Boot</b> will hide the boot menu.</p>"
  )
end

- (Object) init



159
160
161
# File 'src/lib/bootloader/grub2_widgets.rb', line 159

def init
  self.value = grub_default.hidden_timeout && grub_default.hidden_timeout.to_i > 0
end

- (Object) label



149
150
151
# File 'src/lib/bootloader/grub2_widgets.rb', line 149

def label
  _("&Hide Menu on Boot")
end