Class: Bootloader::Grub2Widget::OSProberWidget
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Bootloader::Grub2Widget::OSProberWidget
show all
- Includes:
- Grub2Helper
- Defined in:
- src/lib/bootloader/grub2_widgets.rb
Overview
Represents if os prober should be run
Instance Method Summary
collapse
#grub2, #grub_default, #password, #sections, #stage1
Constructor Details
Returns a new instance of OSProberWidget.
245
246
247
248
249
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 245
def initialize
textdomain "bootloader"
super
end
|
Instance Method Details
#help ⇒ Object
255
256
257
258
259
260
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 255
def help
_(
"<p><b>Probe Foreign OS</b> by means of os-prober for multiboot with " \
"other foreign distribution </p>"
)
end
|
#init ⇒ Object
262
263
264
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 262
def init
self.value = grub_default.os_prober.enabled?
end
|
#label ⇒ Object
251
252
253
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 251
def label
_("Pro&be Foreign OS")
end
|
#store ⇒ Object
266
267
268
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 266
def store
grub_default.os_prober.value = checked?
end
|