Class: Bootloader::Grub2Widget::HiddenMenuWidget

Inherits:
CWM::CheckBox
  • Object
show all
Includes:
Grub2Helper
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 Grub2Helper

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

Constructor Details

#initializeHiddenMenuWidget

Returns a new instance of HiddenMenuWidget.



220
221
222
223
224
# File 'src/lib/bootloader/grub2_widgets.rb', line 220

def initialize
  textdomain "bootloader"

  super
end

Instance Method Details

#helpObject



230
231
232
233
234
# File 'src/lib/bootloader/grub2_widgets.rb', line 230

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

#initObject



236
237
238
# File 'src/lib/bootloader/grub2_widgets.rb', line 236

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

#labelObject



226
227
228
# File 'src/lib/bootloader/grub2_widgets.rb', line 226

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