Class: Bootloader::Grub2Widget::HiddenMenuWidget
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Bootloader::Grub2Widget::HiddenMenuWidget
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
#grub2, #grub_default, #password, #stage1
Constructor Details
158
159
160
161
162
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 158
def initialize
textdomain "bootloader"
super
end
|
Instance Method Details
#help ⇒ Object
168
169
170
171
172
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 168
def help
_(
"<p>Selecting <b>Hide Menu on Boot</b> will hide the boot menu.</p>"
)
end
|
#init ⇒ Object
174
175
176
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 174
def init
self.value = grub_default.hidden_timeout && grub_default.hidden_timeout.to_i > 0
end
|
#label ⇒ Object
164
165
166
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 164
def label
_("&Hide Menu on Boot")
end
|