Class: Bootloader::UpdateNvramWidget
- Inherits:
-
CWM::CheckBox
- Object
- CWM::CheckBox
- Bootloader::UpdateNvramWidget
- Defined in:
- src/lib/bootloader/generic_widgets.rb
Overview
Represents switcher for NVRAM update
Instance Method Summary collapse
- #help ⇒ Object
- #init ⇒ Object
-
#initialize ⇒ UpdateNvramWidget
constructor
A new instance of UpdateNvramWidget.
- #label ⇒ Object
- #store ⇒ Object
Constructor Details
#initialize ⇒ UpdateNvramWidget
Returns a new instance of UpdateNvramWidget.
110 111 112 113 114 |
# File 'src/lib/bootloader/generic_widgets.rb', line 110 def initialize textdomain "bootloader" super end |
Instance Method Details
#help ⇒ Object
120 121 122 123 124 125 |
# File 'src/lib/bootloader/generic_widgets.rb', line 120 def help _("<p><b>Update NVRAM Entry</b> will add nvram entry for the bootloader\n" \ "in the firmware.\n" \ "This is usually desirable unless you want to preserve specific settings\n" \ "or need to work around firmware issues.</p>\n") end |
#init ⇒ Object
127 128 129 |
# File 'src/lib/bootloader/generic_widgets.rb', line 127 def init self.value = Bootloader::BootloaderFactory.current.update_nvram end |
#label ⇒ Object
116 117 118 |
# File 'src/lib/bootloader/generic_widgets.rb', line 116 def label _("Update &NVRAM Entry") end |
#store ⇒ Object
131 132 133 |
# File 'src/lib/bootloader/generic_widgets.rb', line 131 def store Bootloader::BootloaderFactory.current.update_nvram = value end |