Class: Bootloader::OSProberWidget
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Bootloader::OSProberWidget
show all
- Includes:
- Grub2Widget
- 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
168
169
170
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 168
def initialize
textdomain "bootloader"
end
|
Instance Method Details
- (Object) help
176
177
178
179
180
181
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 176
def help
_(
"<p><b>Probe Foreign OS</b> by means of os-prober for multiboot with " \
"other foreign distribution </p>"
)
end
|
- (Object) init
183
184
185
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 183
def init
self.value = grub_default.os_prober.enabled?
end
|
- (Object) label
172
173
174
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 172
def label
_("Pro&be Foreign OS")
end
|
- (Object) store
187
188
189
|
# File 'src/lib/bootloader/grub2_widgets.rb', line 187
def store
grub_default.os_prober.value = checked?
end
|